From 21b129de71e3a5076bf71fef3c900fd8f7fcb3ee Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 27 Apr 2022 08:38:23 +0200 Subject: [PATCH] add merge dict --- IT/ansible.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 +```