diff --git a/tasks/configure.yml b/tasks/configure.yml index b10bd22..44851dd 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -40,6 +40,7 @@ - name: get pid of mongod command: pidof mongod register: mongod_pid + changed_when: false ignore_errors: True - name: temporary start mongod if not started @@ -87,6 +88,7 @@ - name: get pid of mongod command: pidof mongod register: mongod_new_pid + changed_when: false when: mongod_pid.rc != 0 - name: kill temporary mongod if started diff --git a/tasks/install.deb.yml b/tasks/install.deb.yml index 7a708d1..1f64da1 100644 --- a/tasks/install.deb.yml +++ b/tasks/install.deb.yml @@ -5,6 +5,7 @@ - name: Check if running on systemd command: cat /proc/1/cmdline register: systemd + changed_when: false - name: Add systemd configuration if present copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640