mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-11 04:26:32 +00:00
commit
d10f2919b1
@ -6,6 +6,7 @@
|
|||||||
command: cat /proc/1/cmdline
|
command: cat /proc/1/cmdline
|
||||||
register: systemd
|
register: systemd
|
||||||
changed_when: false
|
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
|
- name: Add systemd configuration if present
|
||||||
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640
|
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
-p {{ mongodb_user_admin_password }} --eval 'db.version()' admin
|
-p {{ mongodb_user_admin_password }} --eval 'db.version()' admin
|
||||||
register: mongodb_user_admin_check
|
register: mongodb_user_admin_check
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
always_run: yes # side-effect free, so it can be run in check-mode as well
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: ( mongodb_security_authorization == 'enabled'
|
when: ( mongodb_security_authorization == 'enabled'
|
||||||
and (not mongodb_replication_replset
|
and (not mongodb_replication_replset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user