From da8414dfbc1805506d73c741b3bb55a9b8a47eb0 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 11 Sep 2018 15:18:17 +0100 Subject: [PATCH] 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 --- tasks/galera_post_install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/galera_post_install.yml b/tasks/galera_post_install.yml index 91e28ba4..0d3d34a1 100644 --- a/tasks/galera_post_install.yml +++ b/tasks/galera_post_install.yml @@ -91,6 +91,12 @@ failed_when: false changed_when: log_dir.rc == 0 +- name: create the system group + group: + name: "adm" + state: "present" + system: "yes" + - name: Create mysql log dir file: path: "/var/log/mysql_logs"