cdfcc844e0
Deploy new config to the Ansible server / trigger-webhook (pull_request) Successful in 26s
22 lines
509 B
YAML
22 lines
509 B
YAML
---
|
|
|
|
- name: Make sure the VM has started
|
|
become: false
|
|
community.proxmox.proxmox_kvm:
|
|
validate_certs: false
|
|
node: proxmox-server
|
|
api_user: root@pam
|
|
api_host: "{{ proxmox_1_host }}"
|
|
api_token_id: ansible
|
|
api_token_secret: "{{ proxmox_token_secret }}"
|
|
|
|
name: "{{ vm_hostname }}"
|
|
state: started
|
|
|
|
- name: Sleep for 120 seconds to ensure that Proxmox has cloned the VM
|
|
become: false
|
|
ansible.builtin.wait_for:
|
|
timeout: 120
|
|
delegate_to: localhost
|
|
changed_when: false
|