From 9605b1ab1b73cd3b2ef9ea10862401831534088a Mon Sep 17 00:00:00 2001 From: Sergio Nemirowski Date: Tue, 1 Feb 2022 06:16:27 +0300 Subject: [PATCH] don't do useless re-chown Signed-off-by: Sergio Nemirowski --- tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d7dc6e6..cff5b20 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,15 @@ group: "{{ neogo__group }}" mode: '0750' -- name: Ensure configuration directory exists +- name: Create configuration directory parent + ansible.builtin.file: + state: directory + path: "{{ neogo__conf_dir | realpath | dirname }}" + owner: 'root' + group: 'root' + mode: '0755' + +- name: Create configuration directory ansible.builtin.file: state: directory path: "{{ neogo__conf_dir }}"