no handlers
Infrastructure / Check and run Ansbile playbooks (pull_request) Has been cancelled
Details
Infrastructure / Check and run Ansbile playbooks (pull_request) Has been cancelled
Details
This commit is contained in:
parent
ab54c18b1b
commit
29906fc462
|
@ -36,8 +36,22 @@
|
||||||
clone: "{{ node }}-debian-12"
|
clone: "{{ node }}-debian-12"
|
||||||
storage: nvme
|
storage: nvme
|
||||||
register: create
|
register: create
|
||||||
notify:
|
- name: Initial boot
|
||||||
- Initial boot
|
when: create.changed is true
|
||||||
|
block:
|
||||||
|
- name: Start
|
||||||
|
community.general.proxmox_kvm:
|
||||||
|
state: started
|
||||||
|
register: start
|
||||||
|
retries: 30
|
||||||
|
delay: 10
|
||||||
|
until: start.status is defined
|
||||||
|
- name: Wait
|
||||||
|
ansible.builtin.wait_for:
|
||||||
|
timeout: 180
|
||||||
|
- name: Poweroff
|
||||||
|
community.general.proxmox_kvm:
|
||||||
|
state: stopped
|
||||||
- name: Debug
|
- name: Debug
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: create
|
var: create
|
||||||
|
@ -84,19 +98,3 @@
|
||||||
- create.status != "running"
|
- create.status != "running"
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
state: started
|
state: started
|
||||||
handlers:
|
|
||||||
- name: Initial boot
|
|
||||||
block:
|
|
||||||
- name: Start
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
state: started
|
|
||||||
register: start
|
|
||||||
retries: 30
|
|
||||||
delay: 10
|
|
||||||
until: start.status is defined
|
|
||||||
- name: Wait
|
|
||||||
ansible.builtin.wait_for:
|
|
||||||
timeout: 180
|
|
||||||
- name: Poweroff
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
state: stopped
|
|
||||||
|
|
Loading…
Reference in New Issue