--- - hosts: all vars: docker_services: - libreddit - teddit tasks: # # community.docker does not support compose 2.0 right now. # https://github.com/ansible-collections/community.docker/issues/216 # - name: Update docker compose files and restart those with changes include_tasks: docker-tasks.yaml with_items: "{{ docker_services }}"