summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--requirements.yml2
-rw-r--r--roles/pve-lxc/tasks/main.yml9
3 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9465843..14dcba3f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,9 +14,7 @@ jobs:
with:
python-version: "3.13"
- name: Install dependencies
- run: pip3 install yamllint==1.37.1 ansible-lint==25.9.2 ansible-core==2.20.1
- - name: Install collections
- run: ansible-galaxy install -r requirements.yml
+ run: pip3 install yamllint==1.37.1 ansible-lint==25.9.2
- name: Copy example files
run: |
# Use example files for testing instead of encrypted files
diff --git a/requirements.yml b/requirements.yml
index d2c529e3..2f2c2d44 100644
--- a/requirements.yml
+++ b/requirements.yml
@@ -8,3 +8,5 @@ collections:
version: "1.18.0"
- name: kewlfft.aur
version: "0.13.0"
+ - name: community.proxmox
+ version: "2.0.0"
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