Skip to content
Snippets Groups Projects
Commit 6f4c4b12 authored by Chris Croome's avatar Chris Croome
Browse files

Debug test

parent 730fd9fb
No related branches found
No related tags found
No related merge requests found
Pipeline #20614 failed
---
# The mariadb variable needs to be true for the tasks in this role to be run
mariadb: true
# Systemd security settings
# https://mariadb.com/kb/en/library/systemd/
mariadb_systemd_no_new_privileges: true
......
......@@ -6,10 +6,11 @@ galaxy_info:
description: Ansible role for installing MariaDB on Debian servers
company: Webarchitects Co-operative
license: GNU General Public License v3.0 (GPLv3)
min_ansible_version: 2.9
min_ansible_version: 2.10
platforms:
- name: debian
versions:
- bookworm
- bullseye
- buster
- stretch
......
......@@ -76,7 +76,20 @@
- Reload systemd
- Restart mariadb
# TODO Update the following task to use community.mysql.mysql_query when it is in Debian Ansible
- name: Test MySQL query module
community.mysql.mysql_query:
query: SHOW DATABASES
login_unix_socket: /run/mysqld/mysqld.sock
register: mariadb_query_show_databases
- name: Debug
debug:
var: mariadb_query_show_databases
- name: Fail
fail:
# TODO Update the following task to use community.mysql.mysql_query
- name: Query the databases
command: mysql -BNe "show databases"
check_mode: false
......@@ -113,6 +126,7 @@
include_tasks: mariadb_user.yml
when: ( mariadb_username is defined ) and ( mariadb_username | length > 0 )
when: mariadb
tags:
- mariadb
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment