pagure: adjust the playbook so it support pagure02 which is rhel8/py3 based
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
da89789606
commit
f7de81d5e5
1 changed files with 9 additions and 9 deletions
|
@ -19,7 +19,7 @@
|
||||||
- stunnel
|
- stunnel
|
||||||
# Use haveged to ensure the server keeps some entropy
|
# Use haveged to ensure the server keeps some entropy
|
||||||
- haveged
|
- haveged
|
||||||
when: env != 'pagure-staging'
|
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- packages
|
- packages
|
||||||
|
@ -42,14 +42,14 @@
|
||||||
- stunnel
|
- stunnel
|
||||||
# Use haveged to ensure the server keeps some entropy
|
# Use haveged to ensure the server keeps some entropy
|
||||||
- haveged
|
- haveged
|
||||||
when: env == 'pagure-staging'
|
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
when: env == 'pagure-staging'
|
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
||||||
with_items:
|
with_items:
|
||||||
- pagure-theme-pagureio
|
- pagure-theme-pagureio
|
||||||
tags:
|
tags:
|
||||||
|
@ -104,14 +104,14 @@
|
||||||
- name: Create the "git" user
|
- name: Create the "git" user
|
||||||
command: useradd --move-home --login git --home /srv/git/
|
command: useradd --move-home --login git --home /srv/git/
|
||||||
creates=/srv/git/
|
creates=/srv/git/
|
||||||
when: env != 'pagure-staging'
|
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
- name: Create the "git" user
|
- name: Create the "git" user
|
||||||
command: useradd --create-home --home-dir=/srv/git/ git
|
command: useradd --create-home --home-dir=/srv/git/ git
|
||||||
creates=/srv/git/
|
creates=/srv/git/
|
||||||
when: env == 'pagure-staging'
|
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- python2-fedora-messaging
|
- python2-fedora-messaging
|
||||||
when: env != 'pagure-staging'
|
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- fedora-messaging
|
- fedora-messaging
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- python3-fedora-messaging
|
- python3-fedora-messaging
|
||||||
when: env == 'pagure-staging'
|
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- fedora-messaging
|
- fedora-messaging
|
||||||
|
@ -404,7 +404,7 @@
|
||||||
changed_when: "1 != 1"
|
changed_when: "1 != 1"
|
||||||
environment:
|
environment:
|
||||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||||
when: env != 'pagure-staging'
|
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- web
|
- web
|
||||||
- pagure
|
- pagure
|
||||||
|
@ -414,7 +414,7 @@
|
||||||
changed_when: "1 != 1"
|
changed_when: "1 != 1"
|
||||||
environment:
|
environment:
|
||||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||||
when: env == 'pagure-staging'
|
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
||||||
tags:
|
tags:
|
||||||
- web
|
- web
|
||||||
- pagure
|
- pagure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue