This commit is contained in:
parent
07c7188500
commit
a3880a4698
@ -1,3 +1,4 @@
|
||||
# Standards: 0.1
|
||||
---
|
||||
galaxy_info:
|
||||
author: xoxys
|
||||
|
@ -14,12 +14,13 @@
|
||||
mode: 0644
|
||||
changed_when: False
|
||||
|
||||
- name: Restart service
|
||||
- name: Restart service to disable auth
|
||||
service:
|
||||
name: mongod
|
||||
state: restarted
|
||||
changed_when: False
|
||||
become: True
|
||||
become_user: root
|
||||
|
||||
- name: Create admin user
|
||||
mongodb_user:
|
||||
@ -37,9 +38,10 @@
|
||||
remote_src: True
|
||||
changed_when: False
|
||||
|
||||
- name: Restart service
|
||||
- name: Restart service to re-enable auth
|
||||
service:
|
||||
name: mongod
|
||||
state: restarted
|
||||
changed_when: False
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -51,6 +51,7 @@
|
||||
when: mongodb_systemlog_destination == 'file'
|
||||
notify: __mongod_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
||||
- name: Install pymongo as ansible dependency
|
||||
pip:
|
||||
|
@ -24,3 +24,4 @@
|
||||
fstype: "{{ mongodb_lvm_fstype }}"
|
||||
state: mounted
|
||||
become: True
|
||||
become_user: root
|
||||
|
Loading…
Reference in New Issue
Block a user