chore(ansible): add sources and dictionary task

This commit is contained in:
Michele Cereda
2024-07-04 22:48:18 +02:00
parent c5c72351f5
commit 664c603823
3 changed files with 11 additions and 0 deletions

View File

@@ -99,6 +99,10 @@
- something else
set_fact:
first_non_null_value: "{{ list_with_null_values | select | first }}"
- name: Get values for a specific attribute in a list of dictionaries
set_fact:
vpc_security_group_ids: >-
{{ instance_information.vpc_security_groups | map(attribute='vpc_security_group_id') }}
- name: Manipulate dictionaries
block: