Skip to content

Commit d10f291

Browse files
authored
Merge pull request #65 from maiers/master
Enabling check_mode
2 parents 3cc5ee6 + b949a5e commit d10f291

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tasks/install.deb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
command: cat /proc/1/cmdline
77
register: systemd
88
changed_when: false
9+
always_run: yes # side-effect free, so it can be run in check-mode as well
910

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

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
-p {{ mongodb_user_admin_password }} --eval 'db.version()' admin
2929
register: mongodb_user_admin_check
3030
changed_when: false
31+
always_run: yes # side-effect free, so it can be run in check-mode as well
3132
ignore_errors: true
3233
when: ( mongodb_security_authorization == 'enabled'
3334
and (not mongodb_replication_replset

0 commit comments

Comments
 (0)