Skip to content

Instantly share code, notes, and snippets.

@tbernacchi
Created May 24, 2017 19:11
Show Gist options
  • Save tbernacchi/e9d30c18faf707446c921f3b8a33c4e0 to your computer and use it in GitHub Desktop.
Save tbernacchi/e9d30c18faf707446c921f3b8a33c4e0 to your computer and use it in GitHub Desktop.
---
##INSTALA O REPOSITORIO MariaDB 10.1
- name: Adicionando o repositorio MariaDB 10.1
yum_repository:
name: MariaDB
description: MariaDB repository 10.1
baseurl: http://yum.mariadb.org/10.1/centos7-amd64
gpgkey: https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck: yes
##UPGRADE NO PACOTE MariaDB-shared
- name: Instalando o MariaDB-shared
yum: pkg=MariaDB-shared state=installed
- name: Upgrade no pacote MariaDB-shared
yum: pkg=MariaDB-shared state=latest
##INSTALA O MARIADB-SERVER/CLIENT
- name: Instalando os pacotes MariaDB-Server/Client
yum: pkg={{ item }} state=installed
with_items:
- MariaDB-server.x86_64
- MariaDB-client
##STARTA O BANCO
- name: Startando o banco
command: systemctl start mariadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment