Skip to content

Instantly share code, notes, and snippets.

@alipandidan
Last active September 14, 2021 09:08
Show Gist options
  • Save alipandidan/2b7010dd7b92eb2d0c3d8135a84417c6 to your computer and use it in GitHub Desktop.
Save alipandidan/2b7010dd7b92eb2d0c3d8135a84417c6 to your computer and use it in GitHub Desktop.
Ansible map and join
joined_groups: "{{ list|default([])|map(attribute='id')|join(',') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment