You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
---
- name: NTP
hosts: all
gather_facts: false
connection: local
- name: Play
hosts: all
tasks:
- name: Set ntp
juniper.device.command:
commands:
- set date ntp 1.2.3.4
Expected results
No violations to be produced by ansible-lint
Actual results
ansible-lint produces violations
user@machine JunOS % ansible-lint linttest.yml
WARNING Listing 1 violation(s) that are fatal
args[module]: missing required arguments: _inventory_hostname, _module_name, _module_utils_path (warning)
linttest.yml:10 Task/Handler: Set ntp
Read documentation for instructions on how to ignore specific rule violations.
Rule Violation Summary
count tag profile rule associated tags
1 args[module] syntax, experimental (warning)
Passed: 0 failure(s), 1 warning(s) on 1 files. Last profile that met the validation criteria was 'production'. Rating: 5/5 star
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: