mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
fix up mysql variable assertion logic
This commit is contained in:
@@ -23,8 +23,8 @@
|
|||||||
assert: { that: "output.changed == {{changed}}" }
|
assert: { that: "output.changed == {{changed}}" }
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
key_name: "{{output.msg[0][0]}}"
|
key_name: "{{var_name}}"
|
||||||
key_value: "{{output.msg[0][1]}}"
|
key_value: "{{output.msg[0][0]}}"
|
||||||
|
|
||||||
- name: run mysql command to show variable
|
- name: run mysql command to show variable
|
||||||
command: mysql "-e show variables like '{{var_name}}';"
|
command: mysql "-e show variables like '{{var_name}}';"
|
||||||
|
|||||||
Reference in New Issue
Block a user