-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the role compatible with Alpine linux
Should be compatible with: - 3.17 - 3.18
- Loading branch information
Showing
16 changed files
with
106 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../vars/Alpine.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
collections: | ||
- name: community.general | ||
- name: community.mysql | ||
- name: containers.podman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
- name: Install packages (package) | ||
ansible.builtin.package: | ||
name: | ||
- "{{ mariadb_package }}" | ||
- mariadb-client | ||
- py3-pymysql | ||
state: present | ||
notify: Setup MariaDB | ||
|
||
- name: Check if mariadb command exists | ||
ansible.builtin.stat: | ||
path: /usr/bin/mariadb | ||
register: mariadb_cmd | ||
|
||
- name: Make sure that mariadb command exists | ||
ansible.builtin.file: | ||
src: /usr/bin/mysql | ||
dest: /usr/bin/mariadb | ||
owner: root | ||
group: root | ||
state: link | ||
when: mariadb_cmd.stat.exists is false | ||
|
||
- name: Ensure /run/mysqld | ||
ansible.builtin.file: | ||
path: /run/mysqld | ||
state: directory | ||
owner: mysql | ||
group: mysql | ||
mode: 0755 | ||
|
||
- name: Immediately setup MariaDB (necessary for configuration) | ||
ansible.builtin.meta: flush_handlers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
mariadb_user: mysql | ||
mariadb_package: mariadb | ||
mariadb_config_file: "/etc/my.cnf" | ||
mariadb_data_dir: "/var/lib/mysql" | ||
mariadb_pid_file: "/run/mysqld/mariadb.pid" | ||
mariadb_unix_socket: "/run/mysqld/mysqld.sock" | ||
mariadb_log_dir: "/var/log/mariadb" | ||
mariadb_log_error_file: "{{ mariadb_log_dir }}/error.log" | ||
mariadb_cron_package_name: "cronie" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters