mirror of
https://github.com/rocky-linux/ansible-role-kojid.git
synced 2024-12-22 18:58:31 +00:00
69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
|
---
|
||
|
# Create the users on the koji builder
|
||
|
|
||
|
# This user likely isn't used...
|
||
|
# - name: add mock user
|
||
|
# user:
|
||
|
# name: mock
|
||
|
# uid: 425
|
||
|
# state: present
|
||
|
# home: /var/lib/mock
|
||
|
# createhome: true
|
||
|
# system: true
|
||
|
|
||
|
# - name: Fix permissions
|
||
|
# file:
|
||
|
# state: directory
|
||
|
# path: /var/lib/mock
|
||
|
# mode: '2775'
|
||
|
# owner: root
|
||
|
# group: mock
|
||
|
|
||
|
# - name: Create mock ssh directory
|
||
|
# file:
|
||
|
# state: directory
|
||
|
# path: /var/lib/mock/.ssh
|
||
|
# mode: '0700'
|
||
|
# owner: mock
|
||
|
# group: mock
|
||
|
|
||
|
- name: mockbuilder user
|
||
|
user:
|
||
|
name: mockbuilder
|
||
|
groups: mock
|
||
|
|
||
|
- name: mockbuilder ssh key
|
||
|
authorized_key:
|
||
|
user: mockbuilder
|
||
|
key: "{{ mockbuilder_pub_key }}"
|
||
|
when: mockbuilder_pub_key
|
||
|
|
||
|
- name: kojibuilder user
|
||
|
user:
|
||
|
name: kojibuilder
|
||
|
groups: mock
|
||
|
|
||
|
- name: kojibuilder ssh key
|
||
|
authorized_key:
|
||
|
user: kojibuilder
|
||
|
key: "{{ kojibuilder_pub_key }}"
|
||
|
when: kojibuilder_pub_key
|
||
|
|
||
|
# We need the apache user for NFS
|
||
|
- name: apache group
|
||
|
group:
|
||
|
name: apache
|
||
|
gid: 48
|
||
|
system: true
|
||
|
state: present
|
||
|
|
||
|
- name: apache user
|
||
|
user:
|
||
|
name: apache
|
||
|
uid: 48
|
||
|
createhome: false
|
||
|
group: apache
|
||
|
shell: /sbin/nologin
|
||
|
system: true
|
||
|
state: present
|