change tempalte command
This commit is contained in:
parent
1783ac4390
commit
e586bfaee9
@ -33,5 +33,5 @@ hash_behaviour = merge
|
|||||||
## test ansible template in local
|
## test ansible template in local
|
||||||
|
|
||||||
```sh
|
```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
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user