added 'always_run=yes' for two script tasks otherwise preventing check_mode to run through

This commit is contained in:
Sebastian Maier 2016-07-15 15:57:06 +02:00
parent 3cc5ee6378
commit b949a5e6dd
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
command: cat /proc/1/cmdline
register: systemd
changed_when: false
always_run: yes # side-effect free, so it can be run in check-mode as well
- name: Add systemd configuration if present
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640

View File

@ -28,6 +28,7 @@
-p {{ mongodb_user_admin_password }} --eval 'db.version()' admin
register: mongodb_user_admin_check
changed_when: false
always_run: yes # side-effect free, so it can be run in check-mode as well
ignore_errors: true
when: ( mongodb_security_authorization == 'enabled'
and (not mongodb_replication_replset