--- - name: import a task hosts: containers gather_facts: false tasks: - debug: msg: "{{ selected_containers }}"