Files
fedora-infra_ansible/roles/copr/pre/tasks/main.yml
Ryan Lerch 691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00

21 lines
745 B
YAML

---
- name: Setup the root password
ansible.builtin.user:
name: root
password: "{{ copr_root_passwords[deployment_type][copr_machine_type] }}"
tags:
- root_password
- rootpw
- name: Create copr-signer group
group: name="copr-signer" state=present gid=989
when: "'copr_keygen_aws' in group_names or 'copr_keygen_dev_aws' in group_names"
- name: Pre-create the apache group so it can be assigned to copr-signer
group: name="apache" state=present gid=48
when: "'copr_keygen_aws' in group_names or 'copr_keygen_dev_aws' in group_names"
- name: Create copr-signer user
user: name="copr-signer" group=copr-signer groups=apache uid=992
when: "'copr_keygen_aws' in group_names or 'copr_keygen_dev_aws' in group_names"