REFACTOR: deploy_and_set_up_lxc_on_proxmox.yaml works again

This commit is contained in:
2026-08-11 08:42:51 +04:00
parent 82fcbf5127
commit 14c0b05bd2
3 changed files with 6 additions and 2 deletions
@@ -36,13 +36,15 @@
- name: Make the prompted IP available to the whole playbook
ansible.builtin.set_fact:
fact_lxc_ip_address: "{{ lxc_ip_address }}"
#fact_lxc_ip_address: "{{ lxc_ip_address | ansible.utils.ipaddr('address') }}"
fact_lxc_ip_address: "{{ lxc_ip_address.split('/') | first }}"
- name: Add the target host to the inventory
ansible.builtin.add_host:
name: "{{ fact_lxc_ip_address }}"
groups: new_host
ansible_user: ansible
ansible_become_password: "{{ ansible_become_passwd }}"
- name: Configure LXC