Add ansibe confgi file

This commit is contained in:
Jake Howard 2020-01-17 20:38:45 +00:00
parent 5c5417507b
commit 0d142e455f
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 15 additions and 4 deletions

9
ansible/ansible.cfg Normal file
View 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

View file

@ -2,7 +2,7 @@
set -e set -e
PATH=env/bin:${PATH} PATH=${PWD}/env/bin:${PATH}
set -x set -x
@ -10,4 +10,4 @@ yamllint -sc yamllint.yml ansible/
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint 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

View file

@ -2,8 +2,10 @@
set -e set -e
PATH=env/bin:${PATH} PATH=${PWD}/env/bin:${PATH}
set -x 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