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 @@
mode: 0600
owner: mongodb
group: mongodb
notify: restart mongo
register: update_mongod_key
tags:
- "install"
- "install:configuration"
......@@ -175,7 +175,6 @@
src: mongod.conf.j2
dest: /etc/mongod.conf
backup: yes
notify: restart mongo
register: update_mongod_conf
tags:
- "install"
......@@ -195,7 +194,7 @@
service:
name: mongod
state: restarted
when: update_mongod_conf.changed
when: update_mongod_conf.changed or update_mongod_key.changed
tags:
- "install"
- "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