From a329df3a0b2fdfaebe538b98d87b350465163d73 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 Oct 2025 16:34:43 +0000 Subject: [PATCH] Update file main.yml --- roles/proxmox_lxc/tasks/main.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/roles/proxmox_lxc/tasks/main.yml b/roles/proxmox_lxc/tasks/main.yml index 22d6251..53b22b9 100644 --- a/roles/proxmox_lxc/tasks/main.yml +++ b/roles/proxmox_lxc/tasks/main.yml @@ -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 \ No newline at end of file + delay: 10 + delegate_to: localhost \ No newline at end of file