copr: that was probably a wrong place to create users

This commit is contained in:
Jakub Kadlcik 2022-11-22 04:07:00 +01:00
parent 1d58562bfa
commit 067f4e7998

View file

@ -43,13 +43,6 @@
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
when: datacenter != "aws"
# To avoid ID collisions with roles that are provisioned earlier
- name: pre-create users and groups with specifics UIDs and GIDs
tasks:
- group: name="copr-signer" state=present gid=989
- group: name="apache" state=present gid=48
- user: name="copr-signer" group=copr-signer groups=apache uid=992
- name: provision instance
hosts: copr_keygen_dev:copr_keygen_stg:copr_keygen:copr_keygen_dev_aws:copr_keygen_aws
gather_facts: True
@ -59,6 +52,13 @@
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
# To avoid ID collisions with roles that are provisioned earlier
- name: pre-create users and groups with specifics UIDs and GIDs
tasks:
- group: name="copr-signer" state=present gid=989
- group: name="apache" state=present gid=48
- user: name="copr-signer" group=copr-signer groups=apache uid=992
roles:
- base
- nagios_client