diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 5d89759..2bea9eb 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,4 @@ +--- name-template: "v$RESOLVED_VERSION 🌈" tag-template: "v$RESOLVED_VERSION" categories: diff --git a/.github/stale.yml b/.github/stale.yml index dc90e5a..82c0d00 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,3 +1,4 @@ +--- # Number of days of inactivity before an issue becomes stale daysUntilStale: 60 # Number of days of inactivity before a stale issue is closed diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 689fc73..5a35793 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,3 +1,4 @@ +--- name: Release Drafter on: diff --git a/.gitignore b/.gitignore index dfcd050..0074a18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .venv/ .idea/ +.vscode/ +venv/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae50460..3b7a93d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +--- # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: diff --git a/README.md b/README.md index ff93862..caf4d16 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,14 @@ **Table of Contents** _generated with [DocToc](https://github.com/thlorenz/doctoc)_ -- [ansible-mariadb-galera-cluster](#ansible-mariadb-galera-cluster) - - [Build Status](#build-status) - - [Requirements](#requirements) - - [Vagrant](#vagrant) - - [Role Variables](#role-variables) - - [Dependencies](#dependencies) - - [Example Playbook](#example-playbook) - - [License](#license) - - [Author Information](#author-information) +- [ansible-mariadb-galera-cluster](#ansible-mariadb-galera-cluster) + - [Build Status](#build-status) + - [Requirements](#requirements) + - [Role Variables](#role-variables) + - [Dependencies](#dependencies) + - [Example Playbook](#example-playbook) + - [License](#license) + - [Author Information](#author-information) diff --git a/tasks/main.yml b/tasks/main.yml index d80b4b3..d781087 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -67,7 +67,7 @@ - ansible.builtin.import_tasks: galera_monitoring.yml tags: - config_galera_monitoring - when: galera_enable_galera_monitoring_script + when: galera_enable_galera_monitoring_script|bool - ansible.builtin.import_tasks: cacti.yml tags: diff --git a/tasks/system_performance_tuning.yml b/tasks/system_performance_tuning.yml index 3043674..39c2c45 100644 --- a/tasks/system_performance_tuning.yml +++ b/tasks/system_performance_tuning.yml @@ -25,7 +25,4 @@ become: true when: - mariadb_swappiness != 'auto' - - "not ( - (ansible_virtualization_role == 'guest') - and (ansible_virtualization_type == 'lxc') - )" + - not ( (ansible_virtualization_role == 'guest') and (ansible_virtualization_type == 'lxc') ) diff --git a/vars/main.yml b/vars/main.yml index 168738c..5923207 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,9 +1,4 @@ --- # vars file for ansible-mariadb-galera-cluster -galera_cluster_nodes: "\ - {% set _galera_cluster_nodes = [] %}\ - {% for host in groups[ galera_cluster_nodes_group ] %}\ - {{ _galera_cluster_nodes.append( host ) }}\ - {% endfor %}\ - {{ _galera_cluster_nodes }}" +galera_cluster_nodes: "{% set _galera_cluster_nodes = [] %}{% for host in groups[ galera_cluster_nodes_group ] %}{{ _galera_cluster_nodes.append( host ) }}{% endfor %}{{ _galera_cluster_nodes }}"