REFACTOR: deploy_and_set_up_lxc_on_proxmox.yaml works again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user