mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Use pkg rather than yum/dnf module
This commit is contained in:
committed by
Kevin Fenzi
parent
07f04462c3
commit
54e5823e5f
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user