Update file main.yml
This commit is contained in:
parent
b4121c3198
commit
a329df3a0b
@ -12,10 +12,6 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Display template check result
|
|
||||||
debug:
|
|
||||||
var: template_check
|
|
||||||
|
|
||||||
- name: Create Gateway LXC container using correct template path
|
- name: Create Gateway LXC container using correct template path
|
||||||
shell: |
|
shell: |
|
||||||
pct create 221 \
|
pct create 221 \
|
||||||
@ -37,9 +33,10 @@
|
|||||||
- "'221' not in container_check.stdout"
|
- "'221' not in container_check.stdout"
|
||||||
- "template_check.rc == 0"
|
- "template_check.rc == 0"
|
||||||
|
|
||||||
- name: Wait for container to start
|
- name: Wait for container SSH port to be available
|
||||||
wait_for_connection:
|
wait_for:
|
||||||
host: 192.168.1.221
|
host: 192.168.1.221
|
||||||
port: 22
|
port: 22
|
||||||
timeout: 120
|
timeout: 120
|
||||||
delay: 10
|
delay: 10
|
||||||
|
delegate_to: localhost
|
||||||
Loading…
Reference in New Issue
Block a user