Skip to content

Commit

Permalink
Merge pull request #6 from teamon/patch-1
Browse files Browse the repository at this point in the history
Bring back service restart on first run
  • Loading branch information
pjan committed Apr 16, 2014
2 parents 278a48c + 0442ec2 commit 7220336
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
owner: "{{postgresql_admin_user}}"
group: "{{postgresql_admin_user}}"
mode: 0640
notify:
- restart postgresql
register: postgresql_configuration_pt1

- name: PostgreSQL | Update configuration - pt. 2 (postgresql.conf)
template:
Expand All @@ -29,10 +28,10 @@
owner: "{{postgresql_admin_user}}"
group: "{{postgresql_admin_user}}"
mode: 0640
notify:
- restart postgresql
register: postgresql_configuration_pt2

- name: PostgreSQL | Restart PostgreSQL
service:
name: postgresql
state: started
state: restarted
when: postgresql_configuration_pt1.changed or postgresql_configuration_pt2.changed

0 comments on commit 7220336

Please sign in to comment.