mirror of
https://github.com/DO1JLR/ansible_playbook_servers.git
synced 2024-09-14 19:53:56 +02:00
improve config
This commit is contained in:
parent
d752ba0e3d
commit
ee6da017d8
1 changed files with 8 additions and 10 deletions
18
ansible.cfg
18
ansible.cfg
|
@ -1,8 +1,8 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
inventory = ./hosts.ini
|
inventory = ./hosts.ini
|
||||||
remote_user = ansible
|
remote_user = ansible
|
||||||
retry_files_enabled = False
|
retry_files_enabled = false
|
||||||
nocows = True
|
nocows = true
|
||||||
|
|
||||||
log_path = $HOME/.ansible/ansible.log
|
log_path = $HOME/.ansible/ansible.log
|
||||||
|
|
||||||
|
@ -10,9 +10,7 @@ forks = 20
|
||||||
gathering = smart
|
gathering = smart
|
||||||
fact_caching = jsonfile
|
fact_caching = jsonfile
|
||||||
fact_caching_connection = $HOME/.ansible/facts
|
fact_caching_connection = $HOME/.ansible/facts
|
||||||
host_key_checking = False
|
host_key_checking = false
|
||||||
callback_whitelist = profile_tasks
|
|
||||||
stdout_callback = yaml
|
|
||||||
|
|
||||||
interpreter_python = /usr/bin/python3
|
interpreter_python = /usr/bin/python3
|
||||||
|
|
||||||
|
@ -21,12 +19,12 @@ vault_password_file =./.vault
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
control_path = %(directory)s/%%h-%%r-%%p
|
control_path = %(directory)s/%%h-%%r-%%p
|
||||||
ssh_args = -o StrictHostKeyChecking=accept-new -o ControlMaster=auto -o ControlPersist=600s
|
ssh_args = -o StrictHostKeyChecking=accept-new -o ControlMaster=auto -o ControlPersist=600s
|
||||||
pipelining = True
|
pipelining = true
|
||||||
retries = 10
|
retries = 10
|
||||||
|
|
||||||
[privilege_escalation]
|
[privilege_escalation]
|
||||||
become=Yes
|
become = true
|
||||||
become_method=sudo
|
become_method = sudo
|
||||||
become_user=root
|
become_user = root
|
||||||
become_ask_pass=False
|
become_ask_pass = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue