summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/yum.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/common/tasks/yum.yml b/roles/common/tasks/yum.yml
index f4c10f2..390c567 100644
--- a/roles/common/tasks/yum.yml
+++ b/roles/common/tasks/yum.yml
@@ -17,17 +17,18 @@
value=0
when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
and ansible_distribution_release != "Rawhide"
+ or ansible_virtualization_role == "guest"
- name: Nombre mini de noyaux installés
ini_file: dest=/etc/yum.conf
section=main
option=installonly_limit
value={{ minkernel }}
- when: ansible_default_ipv6.address == "2a00:c70:1:178:170:111:194:c0de"
+ when: ansible_virtualization_role == "guest"
- name: Nombre maxi de noyaux installés
ini_file: dest=/etc/yum.conf
section=main
option=installonly_limit
value={{ maxkernel }}
- when: ansible_default_ipv6.address != "2a00:c70:1:178:170:111:194:c0de"
+ when: ansible_virtualization_role != "guest"