summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-09-11 15:18:17 +0100
committerMarkos Chandras <mchandras@suse.de>2018-09-12 12:11:34 +0100
commitda8414dfbc1805506d73c741b3bb55a9b8a47eb0 (patch)
treeabdc8ea0911cc14c5692b80ddb666ac06486c42c
parentbe75dd060452e2c219ddcbd0501c1c89fe737cda (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: Ia4bb84069a91009c7e2f73f149821f916e08fa88
Notes
Notes (review): Code-Review+2: Kevin Carter (cloudnull) <kevin@cloudnull.com> Code-Review+2: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Workflow+1: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sun, 16 Sep 2018 10:06:52 +0000 Reviewed-on: https://review.openstack.org/601609 Project: openstack/openstack-ansible-galera_server Branch: refs/heads/master
-rw-r--r--tasks/galera_post_install.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks/galera_post_install.yml b/tasks/galera_post_install.yml
index 91e28ba..0d3d34a 100644
--- a/tasks/galera_post_install.yml
+++ b/tasks/galera_post_install.yml
@@ -91,6 +91,12 @@
91 failed_when: false 91 failed_when: false
92 changed_when: log_dir.rc == 0 92 changed_when: log_dir.rc == 0
93 93
94- name: create the system group
95 group:
96 name: "adm"
97 state: "present"
98 system: "yes"
99
94- name: Create mysql log dir 100- name: Create mysql log dir
95 file: 101 file:
96 path: "/var/log/mysql_logs" 102 path: "/var/log/mysql_logs"