Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLPX-86539 CIS: postgres user account settings #499

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
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