From 240e92574302c0c0c80674a6aaecbca6860260c0 Mon Sep 17 00:00:00 2001 From: Ansible Automation Date: Tue, 10 Feb 2026 11:35:33 +0100 Subject: [PATCH] Fix Ansible playbook bugs: update proxmox module, add git pull --rebase --- playbooks/create_lxc.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/create_lxc.yml b/playbooks/create_lxc.yml index 85ae559..93941d6 100644 --- a/playbooks/create_lxc.yml +++ b/playbooks/create_lxc.yml @@ -30,7 +30,7 @@ container_ip_cidr: "{{ container_ip if '/' in container_ip else container_ip + '/24' }}" - name: Create LXC container on Proxmox - community.general.proxmox: + community.proxmox.proxmox: api_host: "{{ proxmox_host | default('10.0.0.1') }}" api_user: "{{ proxmox_api_user }}" api_token_id: "{{ proxmox_api_token_id }}" @@ -54,7 +54,7 @@ register: proxmox_creation - name: Start the container - community.general.proxmox: + community.proxmox.proxmox: api_host: "{{ proxmox_host | default('10.0.0.1') }}" api_user: "{{ proxmox_api_user }}" api_token_id: "{{ proxmox_api_token_id }}" @@ -163,6 +163,7 @@ git config --global user.name "Ansible Automation" git add inventory/hosts.ini git commit -m "Ansible: Added host {{ hostvars[item]['inventory_hostname'] }} to inventory" + git pull --rebase git push args: chdir: "{{ playbook_dir }}/../"