diff --git a/IT/ansible.md b/IT/ansible.md index 9ad85a5..f55d79c 100644 --- a/IT/ansible.md +++ b/IT/ansible.md @@ -4,15 +4,15 @@ ## commande ansible -***launch playbook on staging*** -`ansible-playbook -i staging site.yml --vault-password-file=.vaultpassword` +**_launch playbook on staging_** +`ansible-playbook -i staging site.yml --vault-password-file=.vaultpassword` -***init new role architecture*** +**_init new role architecture_** `ansible-galaxy user_config init` -***launch ansible bootstrap*** +**_launch ansible bootstrap_** `ansible-playbook -i nas, bootstrap.yml -u root --ask-pass` -***encrypt string*** +**_encrypt string_** `ansible-vault encrypt_string` ## ignore know host file on ansible @@ -21,3 +21,11 @@ export ANSIBLE_HOST_KEY_CHECKING=False --ssh-extra-args='-o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null' ``` + +## Merge Dict instead Replace + +in ansible config file set + +``` +hash_behaviour = merge +```