Commit 6f3f24fd by Joseph Mulloy

Replace handler with register/when OPS-2205

parent 6f90e7c9
---
- name: restart mongo
service: name=mongod state=restarted
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
mode: 0600 mode: 0600
owner: mongodb owner: mongodb
group: mongodb group: mongodb
notify: restart mongo register: update_mongod_key
tags: tags:
- "install" - "install"
- "install:configuration" - "install:configuration"
...@@ -175,7 +175,6 @@ ...@@ -175,7 +175,6 @@
src: mongod.conf.j2 src: mongod.conf.j2
dest: /etc/mongod.conf dest: /etc/mongod.conf
backup: yes backup: yes
notify: restart mongo
register: update_mongod_conf register: update_mongod_conf
tags: tags:
- "install" - "install"
...@@ -195,7 +194,7 @@ ...@@ -195,7 +194,7 @@
service: service:
name: mongod name: mongod
state: restarted state: restarted
when: update_mongod_conf.changed when: update_mongod_conf.changed or update_mongod_key.changed
tags: tags:
- "install" - "install"
- "install:configuration" - "install:configuration"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment