Fix YAML Lint

pull/44/head
Emilien Mantel 2021-09-01 13:36:46 +02:00
parent 79d6ed7966
commit 4f7f8481bc
9 changed files with 69 additions and 59 deletions

View File

@ -1,3 +1,5 @@
---
env:
- PLATFORM='docker-buster-default-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'
- PLATFORM='docker-buster-upstream-master' ANSIBLE_VERSION='ansible>=2.9,<2.10'

6
.yamllint.yml 100644
View File

@ -0,0 +1,6 @@
---
extends: default
rules:
line-length: disable

View File

@ -62,10 +62,9 @@ mariadb_mysqldump_max_allowed_packet: '64M'
mariadb_extra_configuration: {}
# Example:
#mariadb_extra_configuration:
# mariadb_extra_configuration:
# 'innodb_awsome_feature': 1
# -------------------------------------
# Replication
# -------------------------------------

View File

@ -1,4 +1,5 @@
---
galaxy_info:
author: Emilien Mantel
description: Install and configure MariaDB (and Galera Cluster) on Debian
@ -19,5 +20,5 @@ galaxy_info:
- debian
- galera
- cluster
dependencies: []
dependencies: []

View File

@ -10,4 +10,4 @@
- name: APT | Install few MariaDB related tools
apt:
pkg: "{{ mariadb_tools }}"
install_recommends: no
install_recommends: false

View File

@ -15,7 +15,7 @@
- name: MYSQL_REPLICATION | Get slave status
mysql_replication:
mode: getslave
ignore_errors: yes
ignore_errors: true
register: slave_status
- name: INCLUDE | Import data
@ -29,5 +29,5 @@
- name: MYSQL_REPLICATION | Get slave status
mysql_replication:
mode: getslave
ignore_errors: yes
ignore_errors: true
register: slave_status

View File

@ -55,7 +55,7 @@
# 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)
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
file:
@ -63,7 +63,7 @@
state: directory
owner: mysql
group: mysql
recurse: yes
recurse: true
- name: SHELL | Remove InnoDB redo logs
shell: "rm -f {{ mariadb_datadir }}/ib_logfile*"

View File

@ -16,7 +16,7 @@
- name: APT | Install some packages
apt:
name: "{{ p }}"
update_cache: yes
update_cache: true
cache_valid_time: 3600
vars:
p: ['ca-certificates', 'curl', 'strace', 'vim']

View File

@ -1,3 +1,5 @@
---
mariadb_tools:
- mariadb-backup
- mysqltuner