summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/pkgs.yml
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-09-15 21:19:15 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-09-15 21:19:15 +0200
commit93421493605c36690fbef1713f4d987b18ec3f46 (patch)
tree52aa2e324ec78669f6adb524d8702e6ee49774e1 /roles/common/tasks/pkgs.yml
parente891ba9ad5335008ad1507d483f683b5d66bf679 (diff)
downloadplaybooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.tar.gz
playbooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.tar.xz
playbooks-ansible-93421493605c36690fbef1713f4d987b18ec3f46.zip
Compat for fc28 and arm32v7 arch
Diffstat (limited to 'roles/common/tasks/pkgs.yml')
-rw-r--r--roles/common/tasks/pkgs.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/common/tasks/pkgs.yml b/roles/common/tasks/pkgs.yml
index 1268953..17bf5d9 100644
--- a/roles/common/tasks/pkgs.yml
+++ b/roles/common/tasks/pkgs.yml
@@ -61,12 +61,20 @@
- name: Installation des paquets disgnostic matériel
dnf: name={{ item }} state=present
with_items:
- - memtest86+
- - lm_sensors
- hddtemp
- smartmontools
when: ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"
+- name: Installation du paquet memtest pour archi x86_64
+ dnf: name=memtest86+ state=present
+ when: ansible_architecture == "x86_64" and
+ ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"
+
+- name: Installation du paquet lm_sensors pour archi x86_64
+ dnf: name=lm_sensors state=present
+ when: ansible_architecture == "x86_64" and
+ ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"
+
- name: Installation d'un programme de gravure
dnf: name=wodim state=present
when: ansible_devices.sr0 is defined