From f856772945b1c89d7d60dbef6ec5d801280bca43 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 13 Sep 2018 15:07:41 +0100 Subject: [PATCH] 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 --- tasks/haproxy_pre_install.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/haproxy_pre_install.yml b/tasks/haproxy_pre_install.yml index 5d6f252..f44db41 100644 --- a/tasks/haproxy_pre_install.yml +++ b/tasks/haproxy_pre_install.yml @@ -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 }}"