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
This commit is contained in:
Markos Chandras 2018-09-11 15:18:17 +01:00
parent be75dd0604
commit da8414dfbc
1 changed files with 6 additions and 0 deletions

View File

@ -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"