Browse Source

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
changes/09/601609/3
Markos Chandras 9 months ago
parent
commit
da8414dfbc
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      tasks/galera_post_install.yml

+ 6
- 0
tasks/galera_post_install.yml View File

@@ -91,6 +91,12 @@
91 91
   failed_when: false
92 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 100
 - name: Create mysql log dir
95 101
   file:
96 102
     path: "/var/log/mysql_logs"

Loading…
Cancel
Save