xoxys.mongodb/tasks/install.yml
2017-12-22 12:59:12 +01:00

22 lines
547 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