initial commit
This commit is contained in:
parent
8cc5c08000
commit
a0ca07c3ab
6
tasks/config.yml
Normal file
6
tasks/config.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: enable mongodb service
|
||||
service:
|
||||
name: mongod
|
||||
enabled: yes
|
||||
state: started
|
14
tasks/install.yml
Normal file
14
tasks/install.yml
Normal 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
3
tasks/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- include: install.yml
|
||||
- include: config.yml
|
Loading…
Reference in New Issue
Block a user