Manually create apache user on builders
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
280786c927
commit
08d514565d
2 changed files with 20 additions and 1 deletions
|
@ -21,7 +21,6 @@
|
|||
roles:
|
||||
- base
|
||||
- hosts
|
||||
- apache
|
||||
- { role: nfs/client, mnt_dir: '/mnt/fedora_koji', nfs_src_dir: "{{ koji_hub_nfs }}", when: createrepo }
|
||||
- { role: fas_client, when: not inventory_hostname.startswith('bkernel') }
|
||||
- { role: sudo, when: not inventory_hostname.startswith('bkernel') }
|
||||
|
|
|
@ -232,3 +232,23 @@
|
|||
when: is_rhel is defined and ansible_architecture == 'x86_64' and ansible_distribution_major_version|int == '6'
|
||||
tags:
|
||||
- koji_builder
|
||||
|
||||
- name: Add the Apache group
|
||||
group: name=apache
|
||||
gid=48
|
||||
system=yes
|
||||
state=present
|
||||
tags:
|
||||
- koji_builder
|
||||
|
||||
- name: Create the apache user
|
||||
user: name=apache
|
||||
uid=48
|
||||
createhome=no
|
||||
group=apache
|
||||
home=/usr/share/httpd
|
||||
shell=/sbin/nologin
|
||||
system=yes
|
||||
state=present
|
||||
tags:
|
||||
- koji_builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue