summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/pve-lxc/tasks/main.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/pve-lxc/tasks/main.yml b/roles/pve-lxc/tasks/main.yml
index 02ae4d0a..56397e50 100644
--- a/roles/pve-lxc/tasks/main.yml
+++ b/roles/pve-lxc/tasks/main.yml
@@ -1,9 +1,10 @@
---
- name: "Download LXC template"
- community.general.proxmox_template:
+ community.proxmox.proxmox_template:
api_host: "{{ ansible_facts['hostname'] }}"
api_user: "{{ pve_admin_user }}@pve"
api_password: "{{ pve_admin_password }}"
+ validate_certs: false
node: "{{ ansible_facts['hostname'] }}"
storage: "local"
content_type: "vztmpl"
@@ -15,10 +16,11 @@
- "molecule-notest"
- name: "Provision LXC container"
- community.general.proxmox:
+ community.proxmox.proxmox:
api_host: "{{ ansible_facts['hostname'] }}"
api_user: "{{ pve_admin_user }}@pve"
api_password: "{{ pve_admin_password }}"
+ validate_certs: false
node: "{{ ansible_facts['hostname'] }}"
vmid: "{{ pve_lxc_id }}"
hostname: "{{ pve_lxc_hostname }}"
@@ -38,10 +40,11 @@
- "molecule-notest"
- name: "Start LXC container"
- community.general.proxmox:
+ community.proxmox.proxmox:
api_host: "{{ ansible_facts['hostname'] }}"
api_user: "{{ pve_admin_user }}@pve"
api_password: "{{ pve_admin_password }}"
+ validate_certs: false
node: "{{ ansible_facts['hostname'] }}"
vmid: "{{ pve_lxc_id }}"
state: started