community.routeros.split 过滤器 – 将命令拆分为参数
注意
此过滤器插件是 community.routeros 集合 (版本 3.1.0) 的一部分。
如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install community.routeros。
要在剧本中使用它,请指定: community.routeros.split。
community.routeros 2.0.0 中的新增功能
概要
- 将命令拆分为参数。 
输入
这描述了过滤器的输入,即 | community.routeros.split 之前的数值。
| 参数 | 注释 | 
|---|---|
| 一个命令。 | 
示例
- name: Split command into list of arguments
  ansible.builtin.set_fact:
    argument_list: "{{ 'foo=bar comment="foo is bar" baz' | community.routeros.split }}"
    # Should result in ['foo=bar', 'comment=foo is bar', 'baz']
返回值
| 键 | 描述 | 
|---|---|
| 参数列表。 返回:成功 | 
