Skip to content
Snippets Groups Projects
Verified Commit fe5433cd authored by nd's avatar nd
Browse files

initial commit

parents
Branches
Tags
No related merge requests found
mongodb: {}
- name: restart mongodb
systemd:
state: restarted
name: mongod.service
---
dependencies:
- packages
- name: install mongodb
apt:
pkg:
- mongodb-org
- name: start and enable mongodb
systemd:
state: started
name: mongodb
daemon_reload: yes
enabled: yes
packages:
repos:
mongodb:
url: "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution|lower }}/mongodb-org/4.0 main"
keyid: "9DA31620334BD75D9DCB49F368818C72E52529D4"
keyserver: keyserver.ubuntu.com
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment