import du dossier ansible

This commit is contained in:
2020-04-19 03:28:50 +02:00
parent 8cce13d9e4
commit 534737fd56
21 changed files with 974 additions and 0 deletions

11
roles/mariadb/README.md Normal file
View File

@@ -0,0 +1,11 @@
mariadb
=========
Install mariaDB
Role Variables
--------------
You have to set the default root password in mysqlRootPassword variable, otherwise it's "SuperPassw0rd" by default.
mysqlRootPassword: MySecurePassw0Rd

View File

@@ -0,0 +1,2 @@
---
mysqlRootPassord: root

View File

@@ -0,0 +1,5 @@
---
- name: restart mariadb
service:
name: 'mariadb'
state: restarted

View File

@@ -0,0 +1,10 @@
---
- name: Define MariaDB root password
shell: "{{ item }}"
with_items:
- "echo mysql-server mysql-server/root_password password {{ mysqlRootPassword }} | debconf-set-selections"
- "echo mysql-server mysql-server/root_password_again password {{ mysqlRootPassword }} | debconf-set-selections"
- name: Install MariaDB Server
apt:
name: mariadb-server