initial commit

This commit is contained in:
Robert Kaussow 2017-07-14 23:05:30 +02:00
parent 8cc5c08000
commit a0ca07c3ab
3 changed files with 23 additions and 0 deletions

6
tasks/config.yml Normal file
View File

@ -0,0 +1,6 @@
---
- name: enable mongodb service
service:
name: mongod
enabled: yes
state: started

14
tasks/install.yml Normal file
View File

@ -0,0 +1,14 @@
---
- name: add mongodb repo
yum-repository:
name: mongodb-org-3.4
description: MongoDB Repository
baseurl: https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck: yes
enabled: yes
gpgkey: https://www.mongodb.org/static/pgp/server-3.4.asc
- name: install mongodb package
package:
name: 'mongodb-org'
state: latest

3
tasks/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
- include: install.yml
- include: config.yml