mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 18:41:38 +08:00
Manually create apache user on builders
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user