xoxys.mongodb/tasks/config.yml
2018-07-10 22:41:01 +02:00

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
systemd:
name: mongod
state: started
enabled: yes
become: True
become_user: root