Hot answers tagged


"In the event that variable item.ppsize is not set I want to exclude that entire parameter from being included." Use the default filter to omit module parameters using the special omit variable pp_size: "{{ item.ppsize|default(omit) }}"


Let's simplify the dictionary in the first task and loop subelements in second. The tasks below - set_fact: nginx_users_selected: "{{ nginx_users_selected| default({})| combine({item.key: item.value}) }}" loop: "{{ nginx_users| dict2items| ...

Only top voted, non community-wiki answers of a minimum length are eligible