fix order of tasks
Infrastructure / Check and run Ansbile playbooks (pull_request) Failing after 5m55s Details

This commit is contained in:
Gleb Koval 2023-09-11 01:19:31 +01:00
parent 6b2a820282
commit ac3494efc5
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
2 changed files with 16 additions and 17 deletions

View File

@ -57,22 +57,6 @@
firewall: false
bridge: SRV
# Initial boot
# For some reason debian cloud images don't use
# 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
when: create.changed is true
block:
- name: Start
community.general.proxmox_kvm:
state: started
register: start
- name: Wait 3 min # Initial apt update, apt upgrade, cloud-init
ansible.builtin.wait_for:
timeout: 180
# VM Configuration
- name: Resize disk
community.general.proxmox_disk:
@ -95,6 +79,22 @@
cores: 2
memory: 2048
# Initial boot
# For some reason debian cloud images don't use
# 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
when: create.changed is true
block:
- name: Start
community.general.proxmox_kvm:
state: started
register: start
- name: Wait 3 min # Initial apt update, apt upgrade, cloud-init
ansible.builtin.wait_for:
timeout: 180
- name: Retart VM
community.general.proxmox_kvm:
state: restarted

View File

@ -15,7 +15,6 @@
- name: Install some stuff
ansible.builtin.apt:
update_cache: true
lock_timeout: 120
name: qemu-guest-agent
become: true
- name: Enable some stuff