Skip to content

check_mode for mysql_user module is fake #588

Answered by markuman
vicmunoz asked this question in General
Discussion options

You must be logged in to vote

Hm, I cannot reproduce what you've described.

---
---
- hosts: localhost
  become: true

  tasks:
    - name: make sure bob does not exist
      community.mysql.mysql_user:
        name: bob
        state: absent

    - name: create in check_mode - changed
      check_mode: true
      community.mysql.mysql_user:
        name: bob
        password: 12345
        priv: '*.*:SELECT'
        state: present

    - name: srsly create - changed
      community.mysql.mysql_user:
        name: bob
        password: 12345
        priv: '*.*:SELECT'
        state: present

    - name: srsly create again - OK
      community.mysql.mysql_user:
        name: bob
        password: 12345
        priv: '*…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@vicmunoz
Comment options

@markuman
Comment options

@vicmunoz
Comment options

@markuman
Comment options

@markuman
Comment options

Answer selected by vicmunoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants