From 3b22a7c7d2ae531eb8dc3a071a6b955b8e0e2023 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 30 Mar 2024 01:14:34 +0000 Subject: [PATCH] Fix #53: Fix Ansible handlers (again) (#56) Reviewed-on: https://git.koval.net/cyclane/kovalhome/pulls/56 --- infra/finance/0000_proxmox_playbook.yaml | 19 +++++++++---------- infra/finance/0001_initialise_playbook.yaml | 1 - infra/finance/0002_docker_playbook.yaml | 1 - infra/finance/0003_firefly-iii_playbook.yaml | 1 - 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/infra/finance/0000_proxmox_playbook.yaml b/infra/finance/0000_proxmox_playbook.yaml index ad3cce4..223879f 100644 --- a/infra/finance/0000_proxmox_playbook.yaml +++ b/infra/finance/0000_proxmox_playbook.yaml @@ -37,7 +37,8 @@ clone: "{{ node }}-debian-12" storage: nvme notify: - - Initial boot + - Start vm + - Wait - name: Wait for status community.general.proxmox_kvm: state: current @@ -103,12 +104,10 @@ # cloud-init for networking on first boot (cloud-init files # are regenerated AFTER networking starts). But we need the # hostname to be registered with DHCP later on so ¯\_(ツ)_/¯ - - name: Initial boot - block: - - name: Start - community.general.proxmox_kvm: - state: started - register: start - - name: Wait 1.5 min # Initial apt update, apt upgrade, cloud-init - ansible.builtin.wait_for: - timeout: 90 + - name: Start VM + community.general.proxmox_kvm: + state: started + register: start + - name: Wait # Initial apt update, apt upgrade, cloud-init + ansible.builtin.wait_for: + timeout: 90 diff --git a/infra/finance/0001_initialise_playbook.yaml b/infra/finance/0001_initialise_playbook.yaml index 2429cfe..e6dc182 100644 --- a/infra/finance/0001_initialise_playbook.yaml +++ b/infra/finance/0001_initialise_playbook.yaml @@ -5,7 +5,6 @@ - name: Wait for connection ansible.builtin.wait_for_connection: timeout: 300 - - name: Install system packages ansible.builtin.apt: update_cache: true diff --git a/infra/finance/0002_docker_playbook.yaml b/infra/finance/0002_docker_playbook.yaml index b66d0a3..b9e33c4 100644 --- a/infra/finance/0002_docker_playbook.yaml +++ b/infra/finance/0002_docker_playbook.yaml @@ -5,7 +5,6 @@ - name: Wait for connection ansible.builtin.wait_for_connection: timeout: 300 - - name: Install dependencies ansible.builtin.apt: update_cache: true diff --git a/infra/finance/0003_firefly-iii_playbook.yaml b/infra/finance/0003_firefly-iii_playbook.yaml index b5a2d92..1fc3ef2 100644 --- a/infra/finance/0003_firefly-iii_playbook.yaml +++ b/infra/finance/0003_firefly-iii_playbook.yaml @@ -7,7 +7,6 @@ - name: Wait for connection ansible.builtin.wait_for_connection: timeout: 300 - - name: Docker compose down community.docker.docker_compose_v2: project_src: "$HOME/{{ app }}"