distgit/pagure: Drop old code dealing with phx2 and py2 and rhel7

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-07-27 09:46:58 +02:00
parent 84f046eaba
commit 4ceb0b2c1c

View file

@ -1,24 +1,6 @@
---
# Configuration for the pagure webapp
- name: install needed packages
package: name={{ item }} state=present
with_items:
- pagure
- pagure-ev
- pagure-logcom
- pagure-milters
- pagure-webhook
- python-psycopg2
- redis
- libsemanage-python
- python-fedora-flask
- pagure-dist-git
when: env != "staging" and datacenter != "iad2"
tags:
- pagure
- packages
- name: install needed packages
package: name={{ item }} state=present
with_items:
@ -32,7 +14,6 @@
- python3-libsemanage
- python3-fedora-flask
- pagure-dist-git
when: env == "staging" or datacenter == "iad2"
tags:
- pagure
- packages
@ -83,16 +64,6 @@
# - stunnel
# - config
- name: Make sure mere mortals can access the fedmsg key
acl:
path: /etc/pki/fedmsg/shell-{{ inventory_hostname }}.key
entity: packager
etype: group
permissions: r
state: present
when: env != "staging" and datacenter != "iad2"
# Set-up Pagure
- name: Create a group pagure we can use
@ -147,19 +118,8 @@
notify:
- restart apache
- name: create the database scheme
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
when: env != "staging" and datacenter != "iad2"
changed_when: "1 != 1"
environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg
tags:
- web
- pagure
- name: create the database scheme
command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py
when: env == "staging" or datacenter == "iad2"
changed_when: "1 != 1"
environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg