File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,6 @@ postgresql-conf:
143
143
144
144
{%- endif % }
145
145
146
- # Restart the service where reloading is not sufficient
147
- # Currently when the cluster is created or changes made to `postgresql.conf`
148
- postgresql- service- restart:
149
- module.wait:
150
- - name: service.restart
151
- - m_name: {{ postgres.service }}
152
-
153
146
{%- set pg_hba_path = salt[' file.join' ](postgres.conf_dir, ' pg_hba.conf' ) % }
154
147
155
148
postgresql- pg_hba:
@@ -176,6 +169,15 @@ postgresql-pg_hba:
176
169
{%- endif % }
177
170
- require:
178
171
- file : postgresql- config- dir
172
+ - watch_in:
173
+ - module: postgresql- service- restart
174
+
175
+ # Restart the service where reloading is not sufficient
176
+ # Currently when the cluster is created or changes made to `postgresql.conf`
177
+ postgresql- service- restart:
178
+ module.wait:
179
+ - name: service.restart
180
+ - m_name: {{ postgres.service }}
179
181
180
182
{%- set pg_ident_path = salt[' file.join' ](postgres.conf_dir, ' pg_ident.conf' ) % }
181
183
You can’t perform that action at this time.
0 commit comments