Fix YAML Lint
parent
79d6ed7966
commit
4f7f8481bc
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- PLATFORM='docker-buster-default-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
- PLATFORM='docker-buster-default-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
||||||
- PLATFORM='docker-buster-upstream-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
- PLATFORM='docker-buster-upstream-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length: disable
|
|
@ -65,7 +65,6 @@ mariadb_extra_configuration: {}
|
||||||
# mariadb_extra_configuration:
|
# mariadb_extra_configuration:
|
||||||
# 'innodb_awsome_feature': 1
|
# 'innodb_awsome_feature': 1
|
||||||
|
|
||||||
|
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
# Replication
|
# Replication
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: Emilien Mantel
|
author: Emilien Mantel
|
||||||
description: Install and configure MariaDB (and Galera Cluster) on Debian
|
description: Install and configure MariaDB (and Galera Cluster) on Debian
|
||||||
|
@ -19,5 +20,5 @@ galaxy_info:
|
||||||
- debian
|
- debian
|
||||||
- galera
|
- galera
|
||||||
- cluster
|
- cluster
|
||||||
dependencies: []
|
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
- name: APT | Install few MariaDB related tools
|
- name: APT | Install few MariaDB related tools
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ mariadb_tools }}"
|
pkg: "{{ mariadb_tools }}"
|
||||||
install_recommends: no
|
install_recommends: false
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
- name: MYSQL_REPLICATION | Get slave status
|
- name: MYSQL_REPLICATION | Get slave status
|
||||||
mysql_replication:
|
mysql_replication:
|
||||||
mode: getslave
|
mode: getslave
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
register: slave_status
|
register: slave_status
|
||||||
|
|
||||||
- name: INCLUDE | Import data
|
- name: INCLUDE | Import data
|
||||||
|
@ -29,5 +29,5 @@
|
||||||
- name: MYSQL_REPLICATION | Get slave status
|
- name: MYSQL_REPLICATION | Get slave status
|
||||||
mysql_replication:
|
mysql_replication:
|
||||||
mode: getslave
|
mode: getslave
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
register: slave_status
|
register: slave_status
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
# TODO: add an "ignore warning"
|
# TODO: add an "ignore warning"
|
||||||
- name: COMMAND | Sync backup to slave - TODO remove vagrant as static user (see why mariadb_backup_user is not working)
|
- name: COMMAND | Sync backup to slave - TODO remove vagrant as static user (see why mariadb_backup_user is not working)
|
||||||
shell: "sudo -E rsync --rsync-path='sudo rsync' -a -e 'ssh -o StrictHostKeyChecking=no' {{ mariadb_backup_user }}@{{ mariadb_slave_import_from }}:{{ mariadb_backup_dir }}/ {{ mariadb_datadir }}/"
|
shell: "sudo -E rsync --rsync-path='sudo rsync' -a -e 'ssh -o StrictHostKeyChecking=no' {{ mariadb_backup_user }}@{{ mariadb_slave_import_from }}:{{ mariadb_backup_dir }}/ {{ mariadb_datadir }}/"
|
||||||
become: no
|
become: false
|
||||||
|
|
||||||
- name: FILE | Re-apply owner
|
- name: FILE | Re-apply owner
|
||||||
file:
|
file:
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: mysql
|
owner: mysql
|
||||||
group: mysql
|
group: mysql
|
||||||
recurse: yes
|
recurse: true
|
||||||
|
|
||||||
- name: SHELL | Remove InnoDB redo logs
|
- name: SHELL | Remove InnoDB redo logs
|
||||||
shell: "rm -f {{ mariadb_datadir }}/ib_logfile*"
|
shell: "rm -f {{ mariadb_datadir }}/ib_logfile*"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
- name: APT | Install some packages
|
- name: APT | Install some packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ p }}"
|
name: "{{ p }}"
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
vars:
|
vars:
|
||||||
p: ['ca-certificates', 'curl', 'strace', 'vim']
|
p: ['ca-certificates', 'curl', 'strace', 'vim']
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
mariadb_tools:
|
mariadb_tools:
|
||||||
- mariadb-backup
|
- mariadb-backup
|
||||||
- mysqltuner
|
- mysqltuner
|
||||||
|
|
Loading…
Reference in New Issue