Skip to content
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

mysql_user: Allow to check for implicit_admin w/o any action #15

Open
Andersson007 opened this issue Aug 10, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Andersson007
Copy link
Collaborator

Copied from ansible-collections/community.general#755
Initially reported by @Akasurde

From @MarcinOrlowski on May 04, 2017 15:06

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

mysql_user

ANSIBLE VERSION
ansible 2.3.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/usr/share/ansible']
  python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]

OS / ENVIRONMENT

N/A

SUMMARY

Would be useful to use mysql_user with just check_implicit_admin (no name given) which combined with register would just check for implicit admin access allowing further steps in role to rely on the result (i.e. skip certain actions).

STEPS TO REPRODUCE
- mysql_user:
      check_implicit_admin: yes
  register: check_result

- debug:
      var: check_result
EXPECTED RESULTS
ok: [pl_neo_sql] => {
    "changed": false,
    "implicit_admin": true
}

ACTUAL RESULTS

It actually fails as name is required.

Copied from original issue: ansible/ansible#24298

@Andersson007
Copy link
Collaborator Author

From @Andersson007 on Jun 09, 2020 09:33

can't we do it as it is now using

ingore_errors: yes
check_implicit_admin: yes

?
needs_info

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

No branches or pull requests

2 participants