| 
147 | 147 |     group: postgres  | 
148 | 148 |   when: (debpkg_mode or nixpkg_mode) and (postgresql_major | int == 15)  | 
149 | 149 | 
 
  | 
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  | 
171 | 151 |   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  | 
172 | 172 | 
 
  | 
173 | 173 | # Add pg_ident.conf  | 
174 | 174 | - name: import pg_ident.conf  | 
 | 
0 commit comments