-
Notifications
You must be signed in to change notification settings - Fork 741
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
devsec.hardening.mysql_hardening - Operation not supported on ubuntu 22.04 #633
Comments
Hi @markuman, can you please do the following?
and put the output here? I guess it's got something to do with symlinks.. Also do you run the playbook as root? |
test playbook on a hetzner vm ubuntu 22.04 as user root ---
- hosts: all
vars:
mariadb_root_password: hdawuefshhfhv34
tasks:
- name: install mariadb
ansible.builtin.apt:
update_cache: true
state: latest
name:
- mariadb-server
- mariadb-client
- python3-pymysql
- name: init root user
ansible.builtin.command: >
sudo mysql -uroot -e "
SET old_passwords=0;
SET PASSWORD FOR root@localhost = PASSWORD('{{ mariadb_root_password }}');
FLUSH PRIVILEGES;"
- name: apply devsec.hardening.mysql_hardening role
block:
- name: apply devsec.hardening.mysql_hardening role
ansible.builtin.include_role:
name: devsec.hardening.mysql_hardening
vars:
mysql_root_password: "{{ mariadb_root_password }}" After the error
|
Thanks, can you do the same on |
@rndmh3ro I'm getting a similar error on Ubuntu 22.04 with MySQL 8.0.34:
Here's my output from what you requested from the original issue creator:
I'd guess it has something to do with a command trying to use the output of the |
The role at this task changes the my.cnf and creats a backup-file, in your case This seems to be a known bug in Ansible: ansible/ansible#76727 And a PR: ansible/ansible#78707 If anyone wants to try the PR out and comment on it, maybe it would help in getting it merged. |
Description
When applying
mysql_hardening
role on a ubuntu 22.04 host with mariadb 10.6.11 I gotReproduction steps
- name: apply devsec.hardening.mysql_hardening role ansible.builtin.include_role: name: devsec.hardening.mysql_hardening vars: mysql_root_password: "{{ mariadb_root_password }}"
Current Behavior
Expected Behavior
no error
OS / Environment
Ubuntu 22.04
Ansible Version
Collection Version
Additional information
The text was updated successfully, but these errors were encountered: