Use pkg rather than yum/dnf module
This commit is contained in:
parent
07f04462c3
commit
54e5823e5f
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue