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:
Markos Chandras 2018-09-13 15:07:41 +01:00
parent 72bbe3eef5
commit f856772945
1 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,15 @@
tags:
- haproxy-user
- name: create the system group
group:
name: "adm"
state: "present"
system: "yes"
tags:
- haproxy-dirs
- haproxy-logs
- name: Create haproxy log dir
file:
path: "{{ '/var/log/haproxy' | realpath }}"