Fix YAML Lint

new_release
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: 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'

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: {} mariadb_extra_configuration: {}
# Example: # Example:
#mariadb_extra_configuration: # mariadb_extra_configuration:
# 'innodb_awsome_feature': 1 # 'innodb_awsome_feature': 1
# ------------------------------------- # -------------------------------------
# Replication # Replication
# ------------------------------------- # -------------------------------------

View File

@ -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: []

View File

@ -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

View File

@ -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

View File

@ -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*"

View File

@ -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']

View File

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