Make it so correct mod_wsgi gets installed on different versions of rhel
This commit is contained in:
parent
5c301c12fd
commit
a6aa7f7923
1 changed files with 17 additions and 0 deletions
|
@ -6,6 +6,23 @@
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
when: ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
|
- name: install mod_wsgi
|
||||||
|
package:
|
||||||
|
name: python3-mod_wsgi
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
when: ansible_distribution_major_version|int == 8 and ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
|
- name: install mod_wsgi
|
||||||
|
package:
|
||||||
|
name: mod_wsgi
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: wsgi.conf
|
- name: wsgi.conf
|
||||||
copy: src="wsgi.conf" dest=/etc/httpd/conf.d/wsgi.conf
|
copy: src="wsgi.conf" dest=/etc/httpd/conf.d/wsgi.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue