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"