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 @@ -147,13 +147,6 @@ postgresql-conf:
147
147
148
148
{%- endif % }
149
149
150
- # Restart the service where reloading is not sufficient
151
- # Currently when the cluster is created or changes made to `postgresql.conf`
152
- postgresql- service- restart:
153
- module.wait:
154
- - name: service.restart
155
- - m_name: {{ postgres.service }}
156
-
157
150
{%- set pg_hba_path = salt[' file.join' ](postgres.conf_dir, ' pg_hba.conf' ) % }
158
151
159
152
postgresql- pg_hba:
@@ -180,6 +173,15 @@ postgresql-pg_hba:
180
173
{%- endif % }
181
174
- require:
182
175
- file : postgresql- config- dir
176
+ - watch_in:
177
+ - module: postgresql- service- restart
178
+
179
+ # Restart the service where reloading is not sufficient
180
+ # Currently when the cluster is created or changes made to `postgresql.conf`
181
+ postgresql- service- restart:
182
+ module.wait:
183
+ - name: service.restart
184
+ - m_name: {{ postgres.service }}
183
185
184
186
{%- set pg_ident_path = salt[' file.join' ](postgres.conf_dir, ' pg_ident.conf' ) % }
185
187
You can’t perform that action at this time.
0 commit comments