diff --git a/IT/Ansible/index.md b/IT/Ansible/index.md index e89ad7c..97b4167 100644 --- a/IT/Ansible/index.md +++ b/IT/Ansible/index.md @@ -29,3 +29,9 @@ in ansible config file set ```config hash_behaviour = merge ``` + +## test ansible template in local + +```sh +ansible -m ansible.builtin.template -a "src=daemon.json.j2 dest=./test.json" --extra-vars=@../defaults/main.yml localhost +```