generated from ansible/ansible_template
add a task to copy the inventory config
This commit is contained in:
parent
dc0cab1d12
commit
5df2f3cb1b
|
@ -19,3 +19,9 @@
|
||||||
src: "ansible.cfg.j2"
|
src: "ansible.cfg.j2"
|
||||||
dest: "/etc/ansible/ansible.cfg"
|
dest: "/etc/ansible/ansible.cfg"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: "Copy the inventory config"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "{{ ansible_inventory }}.json.j2"
|
||||||
|
dest: "/etc/ansible/{{ ansible_inventory }}.json"
|
||||||
|
mode: "0644"
|
||||||
|
|
Reference in New Issue