Skip to content

mysql_user always reports changes when privs: *.*:ALL #104

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

Closed
Jorge-Rodriguez opened this issue Feb 26, 2021 · 1 comment
Closed

mysql_user always reports changes when privs: *.*:ALL #104

Jorge-Rodriguez opened this issue Feb 26, 2021 · 1 comment

Comments

@Jorge-Rodriguez
Copy link
Contributor

SUMMARY

According to the docs MySQL 8 no longer reports ALL privileges as ALL but as the explicit list of granted privileges.

This causes the privilege parser to always detect a change in privileges

ISSUE TYPE
  • Bug Report
COMPONENT NAME

mysql_user

ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT

mysql version 8 and later

STEPS TO REPRODUCE
- name: create user1 state=present with a password
      mysql_user:
        <<: *mysql_params
        name: '{{ user_name_1 }}'
        password: '{{ user_password_1 }}'
        priv: '*.*:ALL'
        state: present
EXPECTED RESULTS

Result is not changed on subsequent runs

ACTUAL RESULTS

Result is always changed

@Jorge-Rodriguez
Copy link
Contributor Author

Duplicates #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant