xoxys.mongodb/tasks/config.yml

17 lines
344 B
YAML
Raw Normal View History

2018-07-07 21:20:00 +00:00
---
- block:
2019-01-12 13:40:16 +00:00
- name: Deploy configuration file
template:
src: etc/mongod.conf.j2
dest: /etc/mongod.conf
mode: 0644
notify: __mongod_restart
2018-07-07 21:20:00 +00:00
2019-01-12 13:40:16 +00:00
- name: Make sure mongodb is up and running
service:
name: mongod
state: started
enabled: yes
2018-07-07 21:20:00 +00:00
become: True
become_user: root