Skip to content

Commit 641951d

Browse files
committed
chore: rebase and use block for condition
1 parent 4d21bb1 commit 641951d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -147,28 +147,28 @@
147147
group: postgres
148148
when: (debpkg_mode or nixpkg_mode) and (postgresql_major | int == 15)
149149

150-
- name: import pg_hba.conf
151-
template:
152-
src: files/postgresql_config/pg_hba.conf.j2
153-
dest: /etc/postgresql/pg_hba.conf
154-
group: postgres
155-
when: (debpkg_mode or nixpkg_mode) and (postgresql_major | int != 15)
156-
157-
# Add pg_hba_public.conf
158-
- name: import pg_hba_public.conf
159-
template:
160-
src: files/postgresql_config/pg_hba_public.conf.j2
161-
dest: /etc/postgresql/pg_hba_public.conf
162-
group: postgres
163-
when: (debpkg_mode or nixpkg_mode) and (postgresql_major | int != 15)
164-
165-
# Add pg_hba_users_public.conf
166-
- name: import pg_hba_users_public.conf
167-
template:
168-
src: files/postgresql_config/pg_hba_users_public.conf.j2
169-
dest: /etc/postgresql/pg_hba_users_public.conf
170-
group: postgres
150+
- name: create pg_hba.conf with includes
171151
when: (debpkg_mode or nixpkg_mode) and (postgresql_major | int != 15)
152+
block:
153+
- name: import pg_hba.conf
154+
template:
155+
src: files/postgresql_config/pg_hba.conf.j2
156+
dest: /etc/postgresql/pg_hba.conf
157+
group: postgres
158+
159+
# Add pg_hba_public.conf
160+
- name: import pg_hba_public.conf
161+
template:
162+
src: files/postgresql_config/pg_hba_public.conf.j2
163+
dest: /etc/postgresql/pg_hba_public.conf
164+
group: postgres
165+
166+
# Add pg_hba_users_public.conf
167+
- name: import pg_hba_users_public.conf
168+
template:
169+
src: files/postgresql_config/pg_hba_users_public.conf.j2
170+
dest: /etc/postgresql/pg_hba_users_public.conf
171+
group: postgres
172172

173173
# Add pg_ident.conf
174174
- name: import pg_ident.conf

0 commit comments

Comments
 (0)