FEATURE_REFACTOR: 1-minute delay added at the end. Refactored according to ansible-lint

This commit is contained in:
2026-07-12 12:39:16 +00:00
parent ff43d53f53
commit 28791acfda
+12 -2
View File
@@ -1,14 +1,16 @@
--- ---
- name: Create new container with minimal options defining network interface with static ip - name: Create new container with minimal options defining network interface with static ip
become: no become: false
community.proxmox.proxmox: community.proxmox.proxmox:
validate_certs: false
node: proxmox-server node: proxmox-server
api_user: root@pam api_user: root@pam
api_host: 192.168.0.2 api_host: 192.168.0.2
api_token_id: ansible api_token_id: ansible
api_token_secret: "{{ proxmox_token_secret }}" api_token_secret: "{{ proxmox_token_secret }}"
cmode: "shell"
vmid: 1040 vmid: 1040
password: ansible-test password: ansible-test
hostname: "ansible-test" hostname: "ansible-test"
@@ -24,8 +26,9 @@
net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.40/24,bridge=vmbr0" net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.40/24,bridge=vmbr0"
- name: Make sure the container has started - name: Make sure the container has started
become: no become: false
community.proxmox.proxmox: community.proxmox.proxmox:
validate_certs: false
node: proxmox-server node: proxmox-server
api_user: root@pam api_user: root@pam
api_host: 192.168.0.2 api_host: 192.168.0.2
@@ -34,3 +37,10 @@
vmid: 1040 vmid: 1040
state: started state: started
- name: Sleep for a minute to ensure that ssh is ready
become: false
ansible.builtin.wait_for:
timeout: 60
delegate_to: localhost
changed_when: false