From 5df2f3cb1b07dd189f4fcf3e90f676f32e7d2798 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Oct 2021 22:45:15 +0200 Subject: [PATCH] add a task to copy the inventory config --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 6fb1073..7d93a72 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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"