From a3ee44b511946a8973c038a482375235be9131bb Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Oct 2021 22:48:17 +0200 Subject: [PATCH] hardcode the inventory name --- defaults/main.yml | 1 - tasks/main.yml | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 53d01dc..e41c2b4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,4 +1,3 @@ -ansible_inventory: "proxmox.py" ansible_proxmox_url: "https://10.7.89.20:8006/" ansible_proxmox_user: "ansible@pve" ansible_proxmox_password: "password" diff --git a/tasks/main.yml b/tasks/main.yml index 7d93a72..d4a6566 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,7 @@ - name: "Get the Proxmox Ansible inventory" ansible.builtin.get_url: url: "https://github.com/xezpeleta/Ansible-Proxmox-inventory/raw/master/proxmox.py" - dest: "/etc/ansible/{{ ansible_inventory }}" + dest: "/etc/ansible/proxmox.py" mode: "0777" - name: "Copy the ansible config" @@ -22,6 +22,6 @@ - name: "Copy the inventory config" ansible.builtin.template: - src: "{{ ansible_inventory }}.json.j2" - dest: "/etc/ansible/{{ ansible_inventory }}.json" + src: "proxmox.json.j2" + dest: "/etc/ansible/proxmox.json" mode: "0644"