From 77aeb39cc6d7f735395adc72721d09b4491c2e79 Mon Sep 17 00:00:00 2001 From: Sergio Nemirowski Date: Tue, 1 Feb 2022 06:15:52 +0300 Subject: [PATCH] don't do useless re-chown Signed-off-by: Sergio Nemirowski --- tasks/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index f469779..a8c8d10 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,11 +13,21 @@ with_items: - "{{ neofs_ir__data_dir }}" -- name: Ensure configuration directory exists +- name: Create configuration directory parent ansible.builtin.file: state: directory path: "{{ item }}" - owner: "root" + owner: 'root' + group: 'root' + mode: '0755' + with_items: + - "{{ neofs_ir__conf_dir | realpath | dirname }}" + +- name: Create configuration directory + ansible.builtin.file: + state: directory + path: "{{ item }}" + owner: 'root' group: "{{ neofs_ir__group }}" mode: '0750' with_items: