Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
- name: test
hosts: balrog21
tasks:
- debug:
msg: "{{ 'admins' in (group_list | from_yaml | map(attribute='name')) }}"
vars:
group_list: '[{"name": "admins"}, {"name": "users"}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment