Some playbooks exhibiting advanced features of Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
328 B

- name: Jinja dict to key/value list
gather_facts: no
hosts: localhost
vars:
expected: param1=foo,param2=bar
input:
param1: foo
param2: bar
output: '{{ input.items() | map("join", "=") | sort | join(",") }}'
tasks:
- debug:
var: output
- assert:
that:
- output == expected