17 lines
322 B
YAML
17 lines
322 B
YAML
---
|
|
- block:
|
|
- 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
|
|
service:
|
|
name: mongod
|
|
state: started
|
|
enabled: yes
|
|
become: True
|
|
become_user: root
|