Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from 532910/parent-dir
Browse files Browse the repository at this point in the history
don't do useless re-chown
  • Loading branch information
sergio authored Feb 2, 2022
2 parents b0a857f + 77aeb39 commit 8fec828
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fec828

Please sign in to comment.