From e2ea1a2fcd5b90916a4f8ff7f501f53173382aed Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 Oct 2025 16:12:06 +0000 Subject: [PATCH] Update file main.yml --- roles/proxmox_lxc/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/proxmox_lxc/tasks/main.yml b/roles/proxmox_lxc/tasks/main.yml index 49b4d03..bfcf9c3 100644 --- a/roles/proxmox_lxc/tasks/main.yml +++ b/roles/proxmox_lxc/tasks/main.yml @@ -2,7 +2,7 @@ - name: Check if container already exists shell: pct list | grep 221 || true register: container_check - delegate_to: "{{ groups['proxmox_servers'][0] }}" + delegate_to: proxmox changed_when: false - name: Create Gateway LXC container using pct command @@ -21,12 +21,12 @@ --start 1 args: executable: /bin/bash - delegate_to: "{{ groups['proxmox_servers'][0] }}" + delegate_to: proxmox when: "'221' not in container_check.stdout" - name: Wait for container to start wait_for_connection: host: 192.168.1.221 port: 22 - timeout: 60 - delay: 5 \ No newline at end of file + timeout: 120 + delay: 10 \ No newline at end of file