small refactoring

This commit is contained in:
Robert Kaussow 2018-07-07 19:30:59 +02:00
parent 7b44cc9e08
commit 0908754470
3 changed files with 8 additions and 12 deletions

View File

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

View File

@ -53,7 +53,14 @@
group: "{{ mongodb_system_group }}"
recurse: yes
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
systemd:

View File

@ -1,4 +1,3 @@
---
- include_tasks: install.yml
- include_tasks: auth.yml
- include_tasks: config.yml