Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-06-07 01:19:27 +02:00
parent 02168225b1
commit cb8ccd8f00
6 changed files with 40 additions and 79 deletions

View File

@@ -12,14 +12,6 @@
when: debian_sources_stat.stat.exists
become: true
- name: "Wait for apt/dpkg locks to be released"
ansible.builtin.wait_for:
path: "{{ item }}"
state: absent
timeout: 300
delay: 5
loop: "{{ apt_lock_files }}"
- name: Setup VM Packages
ansible.builtin.apt:
name: "{{ item }}"
@@ -48,6 +40,11 @@
state: absent
autoremove: true
when: cloud_kernel_packages | length > 0
notify:
- Restart host
become: true
- name: Restart host
ansible.builtin.reboot:
connect_timeout: 5
reboot_timeout: 600
test_command: whoami
become: true