From 54e5823e5f0eba370f3b14deaebe3955798e956f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 8 Aug 2016 13:51:45 +0200 Subject: [PATCH] Use pkg rather than yum/dnf module --- 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 06c8aa5397..89f99485eb 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 - -