- name: Include variables files & load nftables.conf hosts: localhost roles: - include-vars - nftables - name: Update project(s) hosts: localhost vars_prompt: - name: selected_projects prompt: "Choose projects to update (Keep empty to update all. Projects list: {{ hostvars['localhost']['projects'] }})" private: false unsafe: true - name: docker_pull_images prompt: "Pull project(s) images?" default: false private: false tasks: - name: Update project(s) include_role: name: "{{ project }}" loop: "{{ (selected_projects | split) | default(projects, true) }}" loop_control: # Do not use default variable name 'item' to prevent collisions with loops in roles. loop_var: project when: project in projects