Currently use an older version of ansible to configure vyos 1.3.8 LTS at work, and have no issues, but testing on newer ansible versions seem to consistently get this error
fatal: [firewall.lab]: FAILED! => {"changed": false, "msg": "'PlayContext' object has no attribute 'verbosity'"}
Playbook/task
- name: "Set up base configuration"
vyos_config:
lines:
- set system host-name {{ inventory_hostname_short }}Doesn't seem to matter if using lines or src input.
Environment
From within pipenv
Package Version ------------------------- --------- ansible 11.1.0 ansible-compat 24.10.0 ansible-core 2.18.1 ansible-lint 24.12.2 ansible-pylibssh 1.2.2 attrs 24.3.0 bcrypt 4.2.1 black 24.10.0 bracex 2.5.post1 cffi 1.17.1 click 8.1.8 cryptography 44.0.0 filelock 3.16.1 importlib_metadata 8.5.0 Jinja2 3.1.5 jsonschema 4.23.0 jsonschema-specifications 2024.10.1 MarkupSafe 3.0.2 mypy-extensions 1.0.0 packaging 24.2 paramiko 3.5.0 pathspec 0.12.1 pip 24.0 platformdirs 4.3.6 pycparser 2.22 PyNaCl 1.5.0 PyYAML 6.0.2 referencing 0.35.1 resolvelib 1.0.1 rpds-py 0.22.3 ruamel.yaml 0.18.8 ruamel.yaml.clib 0.2.12 subprocess-tee 0.4.2 wcmatch 10.0 yamllint 1.35.1 zipp 3.21.0