small refactoring
This commit is contained in:
parent
7b44cc9e08
commit
0908754470
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Configure database
|
|
||||||
block:
|
|
||||||
- name: Deploy configuration file
|
|
||||||
template:
|
|
||||||
src: etc/mongod.conf.j2
|
|
||||||
dest: /etc/mongod.conf
|
|
||||||
mode: 0644
|
|
||||||
notify: __mongod_restart
|
|
||||||
become: True
|
|
@ -53,7 +53,14 @@
|
|||||||
group: "{{ mongodb_system_group }}"
|
group: "{{ mongodb_system_group }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
state: directory
|
state: directory
|
||||||
when: mongodb_systemlog_destination == 'logfile'
|
when: mongodb_systemlog_destination == 'file'
|
||||||
|
|
||||||
|
- name: Deploy configuration file
|
||||||
|
template:
|
||||||
|
src: etc/mongod.conf.j2
|
||||||
|
dest: /etc/mongod.conf
|
||||||
|
mode: 0644
|
||||||
|
notify: __mongod_restart
|
||||||
|
|
||||||
- name: Make sure mongodb is up and running
|
- name: Make sure mongodb is up and running
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: install.yml
|
- include_tasks: install.yml
|
||||||
- include_tasks: auth.yml
|
- include_tasks: auth.yml
|
||||||
- include_tasks: config.yml
|
|
||||||
|
Loading…
Reference in New Issue
Block a user