Add ansibe confgi file
This commit is contained in:
parent
5c5417507b
commit
0d142e455f
3 changed files with 15 additions and 4 deletions
9
ansible/ansible.cfg
Normal file
9
ansible/ansible.cfg
Normal file
|
@ -0,0 +1,9 @@
|
|||
[defaults]
|
||||
nocows = 1
|
||||
host_key_checking = False
|
||||
retry_files_enabled = False
|
||||
inventory = ./hosts
|
||||
become_ask_pass = True
|
||||
|
||||
[ssh_connection]
|
||||
pipelining = True
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
PATH=env/bin:${PATH}
|
||||
PATH=${PWD}/env/bin:${PATH}
|
||||
|
||||
set -x
|
||||
|
||||
|
@ -10,4 +10,4 @@ yamllint -sc yamllint.yml ansible/
|
|||
|
||||
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint
|
||||
|
||||
ansible-playbook -i ansible/hosts ansible/main.yml --syntax-check
|
||||
cd ansible/ && ansible-playbook main.yml --syntax-check
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
PATH=env/bin:${PATH}
|
||||
PATH=${PWD}/env/bin:${PATH}
|
||||
|
||||
set -x
|
||||
|
||||
ansible-playbook -i ansible/hosts ansible/main.yml -k -K --vault-password-file ansible/.vault_pass
|
||||
cd ansible/
|
||||
|
||||
ansible-playbook --check main.yml -k -K --vault-password-file .vault_pass
|
||||
|
|
Loading…
Reference in a new issue