Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1

Merged
merged 12 commits into from
Feb 7, 2022
1 change: 1 addition & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- bug
- pinned
- security
- planned
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ jobs:
strategy:
matrix:
distro:
- centos8
- rockylinux8
- centos7
- ubuntu2004
- ubuntu1804
- debian10
- debian11

steps:
- name: Check out the codebase.
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
python-version: '3.x'

- name: Install Ansible.
run: pip3 install ansible-base
run: pip3 install ansible-core

- name: Trigger a new import on Galaxy.
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mysql_port: "3306"
mysql_bind_address: '0.0.0.0'
mysql_skip_name_resolve: false
mysql_datadir: /var/lib/mysql
mysql_sql_mode: ''
mysql_sql_mode: ~
# The following variables have a default value depending on operating system.
# mysql_pid_file: /var/run/mysqld/mysqld.pid
# mysql_socket: /var/lib/mysql/mysql.sock
Expand Down
3 changes: 2 additions & 1 deletion tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
- name: Check if MySQL is already installed.
stat: path=/etc/init.d/mysql
stat: path=/etc/init.d/{{ mysql_daemon }}
register: mysql_installed

- name: Update apt cache if MySQL is not yet installed.
apt: update_cache=yes
changed_when: False
when: not mysql_installed.stat.exists

- name: Ensure MySQL Python libraries are installed.
Expand Down
2 changes: 1 addition & 1 deletion templates/my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pid-file = {{ mysql_pid_file }}
{% if mysql_skip_name_resolve %}
skip-name-resolve
{% endif %}
{% if mysql_sql_mode %}
{% if mysql_sql_mode is not none %}
sql_mode = {{ mysql_sql_mode }}
{% endif %}

Expand Down
13 changes: 13 additions & 0 deletions vars/Debian-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
__mysql_daemon: mariadb
__mysql_packages:
- default-mysql-server
mysql_log_file_group: adm
__mysql_slow_query_log_file: /var/log/mysql/mariadb-slow.log
__mysql_log_error: /var/log/mysql/mysql.log
__mysql_syslog_tag: mysqld
__mysql_pid_file: /run/mysqld/mysqld.pid
__mysql_config_file: /etc/mysql/my.cnf
__mysql_config_include_dir: /etc/mysql/conf.d
__mysql_socket: /run/mysqld/mysqld.sock
__mysql_supports_innodb_large_prefix: true