Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mariadb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
mariadb
Commits
6f4c4b12
Commit
6f4c4b12
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Debug test
parent
730fd9fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#20614
failed
2 years ago
Stage: lint
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+3
-0
3 additions, 0 deletions
defaults/main.yml
meta/main.yml
+2
-1
2 additions, 1 deletion
meta/main.yml
tasks/main.yml
+15
-1
15 additions, 1 deletion
tasks/main.yml
with
20 additions
and
2 deletions
defaults/main.yml
+
3
−
0
View file @
6f4c4b12
---
# 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
...
...
This diff is collapsed.
Click to expand it.
meta/main.yml
+
2
−
1
View file @
6f4c4b12
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
15
−
1
View file @
6f4c4b12
...
...
@@ -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
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment