notebook/IT/ansible.md
vincent f7db49b554
All checks were successful
continuous-integration/drone/push Build is passing
correct markdown syntax
2021-04-20 21:01:21 +02:00

24 lines
557 B
Markdown

# ansible
![ansible](img/ansible.png)
## 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
```bash
export ANSIBLE_HOST_KEY_CHECKING=False
--ssh-extra-args='-o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
```