Manually create apache user on builders

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-07-18 16:45:15 +00:00
parent 280786c927
commit 08d514565d
2 changed files with 20 additions and 1 deletions

View file

@ -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') }

View file

@ -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