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