community.routeros.join filter – Join a list of arguments to a command
Note
This filter plugin is part of the community.routeros collection (version 3.0.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.routeros
.
To use it in a playbook, specify: community.routeros.join
.
New in community.routeros 2.0.0
Synopsis
Join and quotes a list of arguments to a command.
Input
This describes the input of the filter, the value before | community.routeros.join
.
Parameter |
Comments |
---|---|
A list of arguments to quote and join. |
Examples
- name: Join arguments for a RouterOS CLI command
ansible.builtin.set_fact:
arguments: "{{ ['foo=bar', 'comment=foo is bar'] | community.routeros.join }}"
# Should result in 'foo=bar comment="foo is bar"'
Return Value
Key |
Description |
---|---|
The joined and quoted result. Returned: success |