Merge pull request #65 from maiers/master

Enabling check_mode
This commit is contained in:
Sergei Antipov 2016-08-02 10:50:33 +07:00 committed by GitHub
commit d10f2919b1
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