[PATCH 2/4] Use pkg rather than yum/dnf module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 roles/mod_wsgi/tasks/mod_wsgi.yml | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/roles/mod_wsgi/tasks/mod_wsgi.yml b/roles/mod_wsgi/tasks/mod_wsgi.yml
index 06c8aa5..89f9948 100644
--- a/roles/mod_wsgi/tasks/mod_wsgi.yml
+++ b/roles/mod_wsgi/tasks/mod_wsgi.yml
@@ -1,16 +1,11 @@
 ---
 # install mod_wsgi
 - name: install mod_wsgi
-  yum: name=mod_wsgi state=present
+  pkg:
+    name: mod_wsgi
+    state: present
   tags:
   - packages
-  when: ansible_distribution_major_version|int < 22
-
-- name: install mod_wsgi
-  dnf: name=mod_wsgi state=present
-  tags:
-  - packages
-  when: ansible_distribution_major_version|int > 21
 
 - name: wsgi.conf
   copy: src="wsgi.conf" dest=/etc/httpd/conf.d/wsgi.conf
@@ -18,5 +13,3 @@
   - restart apache
   tags:
   - config
-
-
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux