- name: Docker directory ansible.builtin.file: path: /opt/{{ docker_nodeexporter_service_id }}/ state: directory - name: Prepare docker-compose.yml ansible.builtin.template: src: docker-compose.yml dest: /opt/{{ docker_nodeexporter_service_id }}/ notify: docker-compose-up