add a task to copy the inventory config

This commit is contained in:
Andreas Zweili 2021-10-25 22:45:15 +02:00
parent dc0cab1d12
commit 5df2f3cb1b
1 changed files with 6 additions and 0 deletions

View File

@ -19,3 +19,9 @@
src: "ansible.cfg.j2"
dest: "/etc/ansible/ansible.cfg"
mode: "0644"
- name: "Copy the inventory config"
ansible.builtin.template:
src: "{{ ansible_inventory }}.json.j2"
dest: "/etc/ansible/{{ ansible_inventory }}.json"
mode: "0644"