copr: pre-create users and groups with specifics UIDs and GIDs
This commit is contained in:
parent
78d1c02b50
commit
1d58562bfa
2 changed files with 7 additions and 4 deletions
|
@ -43,6 +43,13 @@
|
||||||
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
||||||
when: datacenter != "aws"
|
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
|
- name: provision instance
|
||||||
hosts: copr_keygen_dev:copr_keygen_stg:copr_keygen:copr_keygen_dev_aws:copr_keygen_aws
|
hosts: copr_keygen_dev:copr_keygen_stg:copr_keygen:copr_keygen_dev_aws:copr_keygen_aws
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
- name: mount up disk of copr repo
|
- name: mount up disk of copr repo
|
||||||
mount: name=/var/lib/copr-keygen src='LABEL=copr-keygen' fstype=ext4 state=mounted
|
mount: name=/var/lib/copr-keygen src='LABEL=copr-keygen' fstype=ext4 state=mounted
|
||||||
|
|
||||||
- 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: install copr-keygen
|
- name: install copr-keygen
|
||||||
dnf: state=present name=copr-keygen
|
dnf: state=present name=copr-keygen
|
||||||
notify:
|
notify:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue