We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 278a48c + 0442ec2 commit 7220336Copy full SHA for 7220336
tasks/configure.yml
@@ -19,8 +19,7 @@
19
owner: "{{postgresql_admin_user}}"
20
group: "{{postgresql_admin_user}}"
21
mode: 0640
22
- notify:
23
- - restart postgresql
+ register: postgresql_configuration_pt1
24
25
- name: PostgreSQL | Update configuration - pt. 2 (postgresql.conf)
26
template:
@@ -29,10 +28,10 @@
29
28
30
31
32
33
+ register: postgresql_configuration_pt2
34
35
- name: PostgreSQL | Restart PostgreSQL
36
service:
37
name: postgresql
38
- state: started
+ state: restarted
+ when: postgresql_configuration_pt1.changed or postgresql_configuration_pt2.changed
0 commit comments