summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-11-03 23:45:57 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-11-03 23:45:57 +0100
commit207a188a50426503c57bb1d9271be2ae72632571 (patch)
treefec5fb28d900e0d47aead7f1d7af97e07df0fbee
parentd244837efa9a4f4c57d695375d9b725ac0ee811d (diff)
downloadplaybooks-ansible-207a188a50426503c57bb1d9271be2ae72632571.tar.gz
playbooks-ansible-207a188a50426503c57bb1d9271be2ae72632571.tar.xz
playbooks-ansible-207a188a50426503c57bb1d9271be2ae72632571.zip
Fix deps for centos 7.2 and package manager tasks
-rw-r--r--roles/common/tasks/deps.yml1
-rw-r--r--roles/common/tasks/pkgs.yml4
-rw-r--r--roles/diagnostics/tasks/pkgs.yml12
3 files changed, 12 insertions, 5 deletions
diff --git a/roles/common/tasks/deps.yml b/roles/common/tasks/deps.yml
index 905bd13..f7ac9de 100644
--- a/roles/common/tasks/deps.yml
+++ b/roles/common/tasks/deps.yml
@@ -17,6 +17,5 @@
yum: name={{ item }} state=present
with_items:
- libselinux-python
- - python-dnf
- python-firewall
when: ansible_pkg_mgr == "yum"
diff --git a/roles/common/tasks/pkgs.yml b/roles/common/tasks/pkgs.yml
index 316af79..872936b 100644
--- a/roles/common/tasks/pkgs.yml
+++ b/roles/common/tasks/pkgs.yml
@@ -8,7 +8,9 @@
when: ansible_distribution == "CentOS"
- name: Installation des paquets
- dnf: name={{ item }} state=present
+ package:
+ name: "{{ item }}"
+ state: present
with_items:
- emacs-nox
- iotop
diff --git a/roles/diagnostics/tasks/pkgs.yml b/roles/diagnostics/tasks/pkgs.yml
index 2861700..f5d9e8b 100644
--- a/roles/diagnostics/tasks/pkgs.yml
+++ b/roles/diagnostics/tasks/pkgs.yml
@@ -1,16 +1,22 @@
- name: Installation des paquets disgnostic matériel
- dnf: name={{ item }} state=present
+ package:
+ name: "{{ item }}"
+ state: present
with_items:
- 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
+ package:
+ 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
+ package:
+ name: lm_sensors
+ state: present
when: ansible_architecture == "x86_64" and
ansible_virtualization_role == "NA" or ansible_virtualization_role == "host"