Closed tbaschak closed 4 years ago
Files identified in the description:
lib/ansible/modules/network/routeros/routeros_command.py
lib/ansible/modules/utilities/logic/wait_for.py
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @AnderEnder @gregswift @heuels @jarv @jhoekx click here for bot help
@tbaschak, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network
on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community
This looks related to issue #11905, where it appears this is a long-standing bug that many people have run into.
!component =lib/ansible/modules/network/routeros/routeros_command.py
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
Same thing. Already getting used to use ye, tru. Declaring a variable with !!str or |string or quotes does not help.
Thank you very much for your interest in Ansible. This plugin is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/community.network
Please re-submit this issue in the above repository.
If you have further questions please stop by IRC or the mailing list:
IRC: #ansible on irc.freenode.net mailing list: https://groups.google.com/forum/#!forum/ansible-project
SUMMARY
When running a command with
routeros_command
and usingwait_for: "result[0] contains yes"
will fail, butwait_for: result[0] contains ye
works as expected.Similarly, the same thing happens if you do "wait_for: result[0] contains true"
ISSUE TYPE
COMPONENT NAME
routeros_command or wait_for
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
CentOS 7 Debian Buster Mikrotik RouterOS 6.40.8 & 6.43.4
STEPS TO REPRODUCE
EXPECTED RESULTS
This playbook works, adding an s to the end of ye makes it no longer work.
ACTUAL RESULTS
The string yes was not matched if it was contained fully within the contains clause of the wait_for. The same thing happens with tru/true.