Compare commits
23
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
024295133c | ||
|
|
55779602fd | ||
|
|
01f0a5a456 | ||
|
|
dc45359e22 | ||
|
|
ddaff099e9 | ||
|
|
8ac1629641 | ||
|
|
7ed6c97427 | ||
|
|
cfe86b4882 | ||
|
|
de5f943f50 | ||
|
|
0d80ad8bf2 | ||
|
|
4852f9b956 | ||
|
|
9d474c95ec | ||
|
|
287404652d | ||
|
|
7e1fbcdb8e | ||
|
|
7d6b030de9 | ||
|
|
dec5acbf73 | ||
|
|
d49148e352 | ||
|
|
e6a949e75b | ||
|
|
524974304d | ||
|
|
add9a39497 | ||
|
|
8997d66491 | ||
|
|
d3714c319f | ||
|
|
f9dbd0bbc4 |
No files matched your search
@@ -37,7 +37,7 @@ jobs:
|
||||
- debian11
|
||||
# - amazon # geerlingguy.mysql does not support fedora
|
||||
# - arch # needs to be fixed
|
||||
# - opensuse_tumbleweed # needs to be fixed
|
||||
- opensuse_tumbleweed # needs to be fixed
|
||||
# - fedora # geerlingguy.mysql does not support fedora
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
|
||||
@@ -24,6 +24,19 @@
|
||||
- mysql_python_package_debian is not defined
|
||||
- ansible_distribution != "Ubuntu"
|
||||
- ansible_distribution_major_version|int < 20
|
||||
|
||||
- name: Use Python 3 on Suse
|
||||
set_fact:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
when:
|
||||
- ansible_os_family == 'Suse'
|
||||
|
||||
- name: install required python packages on Suse
|
||||
ansible.builtin.shell: zypper -n install python-xml python3-rpm python3-PyMySQL
|
||||
args:
|
||||
removes: /usr/bin/zypper
|
||||
|
||||
|
||||
- include_role:
|
||||
name: mysql_hardening
|
||||
vars:
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
- ansible_distribution == 'Debian'
|
||||
- ansible_distribution_major_version|int >= 11
|
||||
|
||||
- name: Use Python 3 on Suse
|
||||
set_fact:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
when:
|
||||
- ansible_os_family == 'Suse'
|
||||
|
||||
- name: Use Python 2 on Debian 10
|
||||
set_fact:
|
||||
ansible_python_interpreter: /usr/bin/python
|
||||
@@ -29,12 +35,6 @@
|
||||
update_cache: true
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: install required tools on SuSE
|
||||
community.general.zypper:
|
||||
name: "python-xml"
|
||||
state: present
|
||||
when: ansible_facts.os_family == 'Suse'
|
||||
|
||||
- name: create missing directory
|
||||
file:
|
||||
path: "/etc/mysql/conf.d"
|
||||
|
||||
@@ -16,6 +16,7 @@ It configures:
|
||||
|
||||
- Ansible 2.9.0
|
||||
- An existing MySQL installation
|
||||
- python-jmespath on the ansible host
|
||||
|
||||
### Example playbook
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
mysql_daemon: mariadb
|
||||
mysql_hardening_mysql_conf_file: '/etc/my.cnf'
|
||||
mysql_hardening_mysql_confd_dir: '/etc/my.cnf.d'
|
||||
|
||||
mysql_cnf_owner: 'root' # owner of /etc/my.cnf.d/*.cnf files
|
||||
mysql_cnf_group: 'mysql' # owner of /etc/my.cnf.d/*.cnf files
|
||||
|
||||
mysql_hardening_group: 'mysql'
|
||||
login_unix_socket: '/run/mysql/mysql.sock'
|
||||
Reference in new issue
Block a user