summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-09-13 15:07:41 +0100
committerMarkos Chandras <mchandras@suse.de>2018-09-13 15:08:07 +0100
commitf856772945b1c89d7d60dbef6ec5d801280bca43 (patch)
treebcbbd9006499e23bf90319f99458ee21f055d6ba
parent72bbe3eef513a34b066bfb3ccf22287197c3d027 (diff)
tasks: Ensure the 'adm' group is present
The role uses the 'adm' group when creating the log directory. However, nothing really checks whether the groups is present or not, so it will fail in case it is not. As such, we need to create the group before trying to use it. Change-Id: I757632db50b57710da77ea36de09e5f76674fcd5
Notes
Notes (review): Code-Review+2: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Code-Review+2: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Workflow+1: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sun, 16 Sep 2018 09:43:01 +0000 Reviewed-on: https://review.openstack.org/602360 Project: openstack/openstack-ansible-haproxy_server Branch: refs/heads/master
-rw-r--r--tasks/haproxy_pre_install.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/haproxy_pre_install.yml b/tasks/haproxy_pre_install.yml
index 5d6f252..f44db41 100644
--- a/tasks/haproxy_pre_install.yml
+++ b/tasks/haproxy_pre_install.yml
@@ -43,6 +43,15 @@
43 tags: 43 tags:
44 - haproxy-user 44 - haproxy-user
45 45
46- name: create the system group
47 group:
48 name: "adm"
49 state: "present"
50 system: "yes"
51 tags:
52 - haproxy-dirs
53 - haproxy-logs
54
46- name: Create haproxy log dir 55- name: Create haproxy log dir
47 file: 56 file:
48 path: "{{ '/var/log/haproxy' | realpath }}" 57 path: "{{ '/var/log/haproxy' | realpath }}"