Skip to content

Commit 11c4200

Browse files
author
Sergei Antipov
committed
Added changed_when for several tasks
1 parent aa3a8bf commit 11c4200

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tasks/configure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
- name: get pid of mongod
4141
command: pidof mongod
4242
register: mongod_pid
43+
changed_when: false
4344
ignore_errors: True
4445

4546
- name: temporary start mongod if not started
@@ -87,6 +88,7 @@
8788
- name: get pid of mongod
8889
command: pidof mongod
8990
register: mongod_new_pid
91+
changed_when: false
9092
when: mongod_pid.rc != 0
9193

9294
- name: kill temporary mongod if started

tasks/install.deb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- name: Check if running on systemd
66
command: cat /proc/1/cmdline
77
register: systemd
8+
changed_when: false
89

910
- name: Add systemd configuration if present
1011
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640

0 commit comments

Comments
 (0)