fix ansible guideine errors
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-01-12 14:40:16 +01:00
parent 07c7188500
commit a3880a4698
5 changed files with 112 additions and 107 deletions

View File

@ -1,3 +1,4 @@
# Standards: 0.1
---
galaxy_info:
author: xoxys

View File

@ -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

View File

@ -51,6 +51,7 @@
when: mongodb_systemlog_destination == 'file'
notify: __mongod_restart
become: True
become_user: root
- name: Install pymongo as ansible dependency
pip:

View File

@ -24,3 +24,4 @@
fstype: "{{ mongodb_lvm_fstype }}"
state: mounted
become: True
become_user: root