This commit is contained in:
2024-04-04 09:55:51 +03:00
parent 786bd97c07
commit 1f151c00df
7 changed files with 47 additions and 16 deletions

View File

@@ -13,7 +13,7 @@
name: ['cloud-init', 'modemmanager', 'snapd', 'needrestart']
state: absent
lock_timeout: 300
when: ansible_facts['os_family'] == "Debian"
when: ansible_facts['os_family'] == "Debian" and ansible_facts['virtualization_role'] == "guest"
- name: Remove orphans
apt:
@@ -29,7 +29,7 @@
replace: 'MODULES=dep'
notify:
- Make initramfs
when: ansible_facts['os_family'] == "Debian"
when: ansible_facts['os_family'] == "Debian" and ansible_facts['virtualization_role'] == "guest"
ignore_errors: true # TODO
- name: Install CentOS epel