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