From 08d514565d89cb76b29e54dcf8f3ebe756f6305f Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 18 Jul 2017 16:45:15 +0000 Subject: [PATCH] Manually create apache user on builders Signed-off-by: Patrick Uiterwijk --- playbooks/groups/buildvm.yml | 1 - roles/koji_builder/tasks/main.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/buildvm.yml b/playbooks/groups/buildvm.yml index 97983c8c03..3ef9c53b71 100644 --- a/playbooks/groups/buildvm.yml +++ b/playbooks/groups/buildvm.yml @@ -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') } diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index af76818858..b3ab098b14 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -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