Closed GuyFoetz closed 8 months ago
pull request with the fix will fallow soon :)
I ran into this same issue with dellemc.os6.os6_config
on Ansible 2.10 on CentOS 7, and can confirm that the fix in PR #33 does allow running to completion in check mode for me too. (The problem appears to be that result_banners
is only generated in non-check mode, but it is included in the returned result unconditionally; setting result_banners
to an empty array works around this non-initialisation in check mode.)
Please merge #33 or an equivalent fix; it looks like a reasonable fix to me, and without it neither update: check
nor ansible-playbook .... -C
work AFAICT.
Ewen
Just encountered this issue in os6_config
(check mode) as well after installing the most recent collection via ansible-galaxy
. The environment is the Ansible Automation Platform 2.2 ee-supported-rhel8 image with the collection installed.
@elpuma1969
I have also ran into this issue. Being the core config module, most of the roles depend on this one and not having a check mode is a significant deterrent to using the whole collection.
SUMMARY
When executing a playbook with --check a Task with a command will fail due to a variable not being assigned.
ISSUE TYPE
COMPONENT NAME
os6_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.10
STEPS TO REPRODUCE
While running a vlan configuration on os6 with --check to see if the command is executed correctly you get the error
hostvar:
EXPECTED RESULTS
ACTUAL RESULTS