]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Combine some nrpe-selinux package installations
authorDavid Galloway <dgallowa@redhat.com>
Tue, 12 Jul 2016 20:48:46 +0000 (16:48 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 13 Jul 2016 03:39:23 +0000 (23:39 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/nrpe-selinux.yml

index 877aa2e29e34a1dc5ed33e742e720f5584390823..e8f39268cf84623d5245e35f5eba9ccdc59de743 100644 (file)
@@ -1,18 +1,18 @@
 ---
-- name: nrpe - Install semanage python bindings
+- name: nrpe - Install SELinux dependencies
   yum:
-    pkg: libsemanage-python
-    state: installed
-
-- name: nrpe - Install SELinux tools
-  yum:
-    pkg: policycoreutils-python
+    name: "{{ item }}"
     state: installed
+  with_items:
+    - libsemanage-python
+    - policycoreutils-python
 
+# ignore_errors in case we don't have any repos
 - name: nrpe - Ensure SELinux policy is up to date
   yum:
-    pkg: selinux-policy-targeted
+    name: selinux-policy-targeted
     state: latest
+  ignore_errors: true
 
 - name: nrpe - Set SELinux boolean nagios_run_sudo true
   seboolean: