Bootstrap

ansible.cfg配置文件

#编辑默认配置文件
vim /home/daboluo/ansible/ansible.cfg
[defaults]
collections_path=/home/daboluo/ansible/mycollection:/usr/share/ansible/collections
ask_pass=False
inventory=/home/daboluo/ansible/inventory
remote_user=daboluo
roles_path=/home/daboluo/ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
host_key_checking=Flase

[privilege_escalation]
become=True
become_ask_pass=False
become_method=sudo
become_user=root

;