freshmaker: Port from the yum module to the package module

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-06-11 16:22:19 +02:00
parent f2d38f43d8
commit 371329018c

View file

@ -1,26 +1,17 @@
---
- name: install the packages required for Freshmaker frontend
yum:
name: "{{ item }}"
package:
name: ["httpd", "mod_wsgi", "mod_auth_openidc",
"libsemanage-python", "python-psycopg2", "freshmaker"]
state: present
with_items:
- httpd
- mod_wsgi
- mod_auth_openidc
- libsemanage-python
- python-psycopg2
- freshmaker
when: inventory_hostname.startswith('freshmaker-frontend')
tags:
- freshmaker
- name: install the packages required for Freshmaker backend
yum:
name: "{{ item }}"
package:
name: ["python-psycopg2", "freshmaker"]
state: present
with_items:
- python-psycopg2
- freshmaker
when: inventory_hostname.startswith('freshmaker-backend')
tags:
- freshmaker