Cli_rm_builder: ERROR! this task 'include' has extra params

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:

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

OK - it worked now, after two changes:

  • cli_rm_builder/roles/scaffold_resource_module/tasks/main.yml
    Replace “include” with “include_tasks”.
    https://github.com/ansible-network/resource_module_builder/pull/72
  • upgrading “black.py” and “Click” from “python3.12/site-packages” because of:
    "ImportError: cannot import name ‘_unicodefun’ from ‘click’"

It seems like that “cli_rm_builder” is not maintained for years, whereas “resource_module_builder” got one update.

So my question: is “cli_rm_builder” still the preferred way to develop Ansible Network components or is “resource_module_builder” a valid option to go with?