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: I757632db50b57710da77ea36de09e5f76674fcd5
This commit is contained in:
parent
72bbe3eef5
commit
f856772945
|
@ -43,6 +43,15 @@
|
||||||
tags:
|
tags:
|
||||||
- haproxy-user
|
- haproxy-user
|
||||||
|
|
||||||
|
- name: create the system group
|
||||||
|
group:
|
||||||
|
name: "adm"
|
||||||
|
state: "present"
|
||||||
|
system: "yes"
|
||||||
|
tags:
|
||||||
|
- haproxy-dirs
|
||||||
|
- haproxy-logs
|
||||||
|
|
||||||
- name: Create haproxy log dir
|
- name: Create haproxy log dir
|
||||||
file:
|
file:
|
||||||
path: "{{ '/var/log/haproxy' | realpath }}"
|
path: "{{ '/var/log/haproxy' | realpath }}"
|
||||||
|
|
Loading…
Reference in New Issue