Move mod_wsgi to a role rather than a included tasks
This commit is contained in:
parent
5cce9c0030
commit
07f04462c3
37 changed files with 37 additions and 39 deletions
|
@ -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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue