From 213ff05f06abbe446722ad244940260d5ab8cd20 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 9 Nov 2015 17:58:55 +0000 Subject: [PATCH] Another dnf/yum one here. --- tasks/mod_wsgi.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/mod_wsgi.yml b/tasks/mod_wsgi.yml index a612de4144..c4d9deb893 100644 --- a/tasks/mod_wsgi.yml +++ b/tasks/mod_wsgi.yml @@ -4,6 +4,13 @@ yum: 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="{{ files }}/mod_wsgi/wsgi.conf" dest=/etc/httpd/conf.d/wsgi.conf