Move mod_wsgi to a role rather than a included tasks

This commit is contained in:
Michael Scherer 2016-08-08 13:51:44 +02:00 committed by Kevin Fenzi
parent 5cce9c0030
commit 07f04462c3
37 changed files with 37 additions and 39 deletions

View file

@ -1,22 +0,0 @@
---
# install mod_wsgi
- name: install mod_wsgi
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
notify:
- restart apache
tags:
- config