add ansible template test

This commit is contained in:
vincent 2023-11-01 09:30:37 +01:00
parent 64cb5492dd
commit 1783ac4390

View File

@ -29,3 +29,9 @@ in ansible config file set
```config ```config
hash_behaviour = merge 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
```