Updated ansible scripts

This commit is contained in:
Trial97
2019-08-05 13:18:41 +03:00
committed by Dan Christian Bogos
parent eec3bbe70c
commit 8a236165f4
2 changed files with 22 additions and 4 deletions

View File

@@ -53,13 +53,13 @@
apt:
name: redis-server
- name: Install the mongo
apt:
name: mongodb-server
# - name: Install the mongo
# apt:
# name: mongodb-server
- name: Install the mysql
apt:
name: mysql-server
name: mariadb-server
- name: Install the postgresql
apt:
@@ -70,6 +70,8 @@
name: postgresql-contrib
###########################################################################################################################
- name: Install mongo
include: mongo.yaml
- name: Install kafka
include: kafka.yaml

View File

@@ -0,0 +1,16 @@
---
- name: Add an apt key for MongoDB
apt_key:
url: https://www.mongodb.org/static/pgp/server-4.0.asc
state: present
- name: Add apt repository for MongoDB
apt_repository:
repo: "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.0 main"
filename: mongodb-org-4.0
update_cache: yes
- name: Install MongoDB
apt:
name: "mongodb-org"
state: present