ansible-lint recommendations

activate privilege escalation when changing users
This commit is contained in:
Oli
2023-09-23 20:31:07 +00:00
parent e7620417ac
commit b4218d3ec0
3 changed files with 8 additions and 4 deletions

View File

@@ -27,10 +27,11 @@
cache_valid_time: 3600
- name: Set PostgreSQL parameters
become: true
become_user: postgres
community.postgresql.postgresql_set:
name: "{{ item.name }}"
value: "{{ item.value }}"
become_user: postgres
register: postgresql_set
loop: "{{ pgsql_config }}"
notify: Restart postgresql