-
Hi, Just wanting to know the logic behind. Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
markuman
Nov 8, 2023
Replies: 1 comment 5 replies
-
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: '*.*:SELECT'
state: present
- name: check_mode create again - OK
check_mode: true
community.mysql.mysql_user:
name: bob
password: 12345
priv: '*.*:SELECT'
state: present
- name: cleanup
community.mysql.mysql_user:
name: bob
password: 12345
priv: '*.*:SELECT'
state: absent output
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
vicmunoz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, I cannot reproduce what you've described.