Closed zippanto closed 4 months ago
With an up-to-date Ansible version (2.16.x) this now seems to be a fatal error during playbook execution:
TASK [Compare active to candidate configuration] ******************************************************************
task path: [...].yml:96
redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
redirecting (type: terminal) ansible.builtin.junos to junipernetworks.junos.junos
redirecting (type: cliconf) ansible.builtin.junos to junipernetworks.junos.junos
fatal: [test-ex3300]: FAILED! => {"changed": false, "msg": "missing required arguments: _inventory_hostname, _module_name, _module_utils_path"}
Edit: opened a new issue for this -> #644
@salfers fixed #664
Issue Type
Module Name
juniper.device collection and Python libraries version
Summary
Running ansible-lint against the playbook produces a fatal violation.
Looking at the source code of the module it seems the arguments mentioned in the violation are set to be required although they are hidden. We presume this is what's causing this issue.
Steps to reproduce
Create a playbook file with the contents below. Then run ansible-lint against the playbook file.
Expected results
No violations to be produced by ansible-lint
Actual results
ansible-lint produces violations