Closed skjbulcher closed 3 years ago
@skjbulcher hi, thanks for reporting the issue!
1) Could you please try this with the latest Ansible version if possible OR 2) using the latest version of the collection See https://github.com/ansible-collections/community.mysql/blob/main/README.md.
I'm not 100% sure if this help but there have been a lot of changes introduced since that.
3) If this doesn't help, could you please try to add login_user: root
to the task.
Anyway please let us know the result.
login_unix_socket: ...
if the previous steps didn't help (to localize the issue).@skjbulcher , has anything helped? ^
@skjbulcher , has anything helped? ^
I did end up installing the latest version of ansible a couple days ago. This is a bug (in the version of ansible?) that comes in Ubuntu 20.04's repository.
@skjbulcher so if this helps, that's cool, thanks for the feedback!
SUMMARY
I am fairly new to Ansible, so this may just be me, but I can't figure out how to connect to get mysql info. I'm using the plugin as part of the larger devsec.hardening package to secure a MariaDB installation. The install is brand new, so I can access the MariaDB client using
sudo mysql -uroot
. I also figured out how to run other Ansible tasks on the target computer.results in:
ISSUE TYPE
COMPONENT NAME
community.mysql.mysql_info
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04