Use Ansible handlers properly (2nd try)
Infrastructure / Check and run Ansbile playbooks (pull_request) Successful in 1m51s
Details
Infrastructure / Check and run Ansbile playbooks (pull_request) Successful in 1m51s
Details
This commit is contained in:
parent
621e634798
commit
af49d994c1
|
@ -37,7 +37,8 @@
|
||||||
clone: "{{ node }}-debian-12"
|
clone: "{{ node }}-debian-12"
|
||||||
storage: nvme
|
storage: nvme
|
||||||
notify:
|
notify:
|
||||||
- Initial boot
|
- Start vm
|
||||||
|
- Wait
|
||||||
- name: Wait for status
|
- name: Wait for status
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
state: current
|
state: current
|
||||||
|
@ -103,12 +104,10 @@
|
||||||
# cloud-init for networking on first boot (cloud-init files
|
# cloud-init for networking on first boot (cloud-init files
|
||||||
# are regenerated AFTER networking starts). But we need the
|
# are regenerated AFTER networking starts). But we need the
|
||||||
# hostname to be registered with DHCP later on so ¯\_(ツ)_/¯
|
# hostname to be registered with DHCP later on so ¯\_(ツ)_/¯
|
||||||
- name: Initial boot
|
- name: Start VM
|
||||||
block:
|
|
||||||
- name: Start
|
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
state: started
|
state: started
|
||||||
register: start
|
register: start
|
||||||
- name: Wait 1.5 min # Initial apt update, apt upgrade, cloud-init
|
- name: Wait # Initial apt update, apt upgrade, cloud-init
|
||||||
ansible.builtin.wait_for:
|
ansible.builtin.wait_for:
|
||||||
timeout: 90
|
timeout: 90
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
- name: Wait for connection
|
- name: Wait for connection
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.wait_for_connection:
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
|
||||||
- name: Install system packages
|
- name: Install system packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
- name: Wait for connection
|
- name: Wait for connection
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.wait_for_connection:
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
- name: Wait for connection
|
- name: Wait for connection
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.wait_for_connection:
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
|
||||||
- name: Docker compose down
|
- name: Docker compose down
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "$HOME/{{ app }}"
|
project_src: "$HOME/{{ app }}"
|
||||||
|
|
Loading…
Reference in New Issue