--- - name: Check n8n directory exist ansible.builtin.file: path: n8n state: directory - name: Copy template conf ansible.builtin.template: src: "{{ item.src }}" dest: "n8n/{{ item.dest }}" loop: - { src: 'docker-compose.yml', dest: 'docker-compose.yml' } - name: Update and restart container community.docker.docker_compose_v2: project_src: n8n state: present pull: always become: true