Use pkg rather than yum/dnf module

This commit is contained in:
Michael Scherer 2016-08-08 13:51:45 +02:00 committed by Kevin Fenzi
parent 07f04462c3
commit 54e5823e5f

View file

@ -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