Update file main.yml

This commit is contained in:
Administrator 2025-10-10 16:12:06 +00:00
parent aac697dddd
commit e2ea1a2fcd

View File

@ -2,7 +2,7 @@
- name: Check if container already exists - name: Check if container already exists
shell: pct list | grep 221 || true shell: pct list | grep 221 || true
register: container_check register: container_check
delegate_to: "{{ groups['proxmox_servers'][0] }}" delegate_to: proxmox
changed_when: false changed_when: false
- name: Create Gateway LXC container using pct command - name: Create Gateway LXC container using pct command
@ -21,12 +21,12 @@
--start 1 --start 1
args: args:
executable: /bin/bash executable: /bin/bash
delegate_to: "{{ groups['proxmox_servers'][0] }}" delegate_to: proxmox
when: "'221' not in container_check.stdout" when: "'221' not in container_check.stdout"
- name: Wait for container to start - name: Wait for container to start
wait_for_connection: wait_for_connection:
host: 192.168.1.221 host: 192.168.1.221
port: 22 port: 22
timeout: 60 timeout: 120
delay: 5 delay: 10