I’m developing an Ansible network collection for LANCOM Systems devices, like switches, routers, access-points.
A basic collection with a first command-module works fine.
Now I want to go further and develop more modules by using the “cli-rm-builder”.
As described here:
- Developing network resource modules — Ansible Community Documentation
- https://github.com/ansible-network/cli_rm_builder
- https://github.com/ansible-network/resource_module_builder
At first I tried the existing “cisco.ios” resource-module-model.
But I always get the error message (even on other examples):
ERROR! this task ‘include’ has extra params, which is only allowed in the following modules: shell, meta, add_host, group_by, win_shell, win_command, set_fact, command, script, import_tasks, include_vars, raw, include_tasks, import_role, include_role
The error appears to be in ‘$HOME/.ansible/collections/ansible_collections/ansible_network/cli_rm_builder/roles/scaffold_resource_module/tasks/main.yml’: line 45, column 3, but may
be elsewhere in the file depending on the exact syntax problem.The offending line appears to be:
- name: Template each of the files
^ here
I’m using:
ansible [core 2.18.4]
python version = 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
jinja version = 3.1.6
libyaml = True
My playbook:
---
- hosts: localhost
gather_facts: yes
roles:
- ansible_network.cli_rm_builder.run
Can you give me some hints, what could be wrong?
Thank you very much,
Heiko Tropartz