notebook/IT/ansible.md
2020-11-26 18:38:25 +01:00

526 B

ansible

commande ansible

launch playbook on staging ansible-playbook -i staging site.yml --vault-password-file=.vaultpassword

init new role architecture ansible-galaxy user_config init

launch ansible bootstrap ansible-playbook -i nas, bootstrap.yml -u root --ask-pass

encrypt string ansible-vault encrypt_string

ignore know host file on ansible

export ANSIBLE_HOST_KEY_CHECKING=False
--ssh-extra-args='-o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'