From c416526aeb95895ad6cffb913c32781279daaef2 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Oct 2021 22:09:46 +0200 Subject: [PATCH] add the proxmox inventory config --- defaults/main.yml | 4 ++++ templates/proxmox.json.j2 | 6 ++++++ vars/main.yml | 2 -- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 templates/proxmox.json.j2 diff --git a/defaults/main.yml b/defaults/main.yml index e69de29..53d01dc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -0,0 +1,4 @@ +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/templates/proxmox.json.j2 b/templates/proxmox.json.j2 new file mode 100644 index 0000000..7052255 --- /dev/null +++ b/templates/proxmox.json.j2 @@ -0,0 +1,6 @@ +{ + "url": "{{ ansible_proxmox_url }}", + "username": "{{ ansible_proxmox_user }}", + "password": "{{ ansible_proxmox_password }}", + "validateCert": false +} diff --git a/vars/main.yml b/vars/main.yml index 63679f3..555ff2b 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,5 +2,3 @@ ansible_packages: - ansible - ansible-lint - sshpass - -ansible_inventory: "proxmox.py"