22 lines
545 B
YAML
22 lines
545 B
YAML
---
|
|
- block:
|
|
- 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
|
|
notify:
|
|
- mongod_restart
|
|
|
|
- name: Install mongodb package
|
|
package:
|
|
name: mongodb-org
|
|
state: latest
|
|
notify:
|
|
- mongod_restart
|
|
become: True
|
|
become_user: root
|