From e586bfaee9b98c108944b119a061b2ed7bab1cfc Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 1 Nov 2023 09:38:00 +0100 Subject: [PATCH] change tempalte command --- IT/Ansible/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IT/Ansible/index.md b/IT/Ansible/index.md index 97b4167..1cd3801 100644 --- a/IT/Ansible/index.md +++ b/IT/Ansible/index.md @@ -33,5 +33,5 @@ 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 +ansible -m debug -a "msg='{{ lookup('template','./daemon.json.j2')}}'" --extra-vars=@../../../group_vars/all/docker localhost ```