From 1783ac4390a161bd4f050892a32feb842abb403f Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 1 Nov 2023 09:30:37 +0100 Subject: [PATCH] add ansible template test --- IT/Ansible/index.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 +```