Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -738,3 +738,20 @@
path: /etc/environment
state: absent
regexp: '^\s*PATH\s*='

# Check if the specified directories exist to update the permissions
- stat:
path: "{{ item }}"
with_items:
- /export/home/delphix
- /export/home/cli
- /var/lib/postgresql
register: dir_check

# Update the permissions of the directory only if it exists
- file:
path: "{{ item.stat.path }}"
state: directory
mode: 0750
when: item.stat.exists
with_items: "{{ dir_check.results }}"
Loading