renamed vars to use 'lxc' prefix instead of 'container'
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
|
||||
- name: Debug - Check if container is in inventory
|
||||
ansible.builtin.debug:
|
||||
msg: "Container {{ container_hostname }} found with IP: {{ hostvars[container_hostname]['ansible_host'] | default('NOT FOUND') }}"
|
||||
msg: "Container {{ lxc_hostname }} found with IP: {{ hostvars[lxc_hostname]['ansible_host'] | default('NOT FOUND') }}"
|
||||
|
||||
|
||||
- name: Wait for SSH to become available
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ hostvars[container_hostname]['ansible_host'] }}"
|
||||
host: "{{ hostvars[lxc_hostname]['ansible_host'] }}"
|
||||
port: 22
|
||||
delay: 3
|
||||
state: started
|
||||
|
||||
Reference in New Issue
Block a user