community.routeros.quote_argument_value filter – Quote an argument value
Note
This filter plugin is part of the community.routeros collection (version 3.13.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.quote_argument_value.
New in community.routeros 2.0.0
Synopsis
Quote an argument value.
Input
This describes the input of the filter, the value before | community.routeros.quote_argument_value.
Parameter |
Comments |
|---|---|
An argument value to quote. |
Examples
---
- name: Quote a RouterOS CLI command argument's value
ansible.builtin.set_fact:
quoted: >-
{{ 'this is a "comment"' | community.routeros.quote_argument_value }}
# Should result in '"this is a \"comment\""'
Return Value
Key |
Description |
|---|---|
The quoted argument value. Returned: success |