Skip to content

Instantly share code, notes, and snippets.

View dudebowski's full-sized avatar
🏠
Working from home

Adriaan Mutter dudebowski

🏠
Working from home
View GitHub Profile
@dudebowski
dudebowski / ansible_select_from_list.yml
Last active May 27, 2020 09:29
select one item from listand put it in a fact
---
- name: select
gather_facts: false
hosts: localhost
connection: local
vars:
- my_selector:
- "the_value_to_select"
@dudebowski
dudebowski / select_playbook.yml
Created May 25, 2020 14:17
Select items from lists in Ansible
---
## See
## https://docs.ansible.com/ansible/latest/plugins/lookup/vars.html
## https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#when-should-i-use-also-how-to-interpolate-variables-or-dynamic-variable-names
- name: select
gather_facts: false
hosts: localhost
connection: local
vars:

Keybase proof

I hereby claim:

  • I am dudebowski on github.
  • I am dudebowski (https://keybase.io/dudebowski) on keybase.
  • I have a public key whose fingerprint is A7E7 FE46 505C B0AB 5137 99F5 3635 01CA D82E 4A7F

To claim this, I am signing this object: