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:
parent
be75dd0604
commit
da8414dfbc
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue