--- - name: Create Roundcube directories ansible.builtin.file: path: "{{ item }}" state: directory mode: '0755' loop: - "{{ roundcube_data_dir }}" - name: Deploy Roundcube docker-compose ansible.builtin.template: src: docker-compose.yml.j2 dest: "{{ roundcube_data_dir }}/docker-compose.yml" mode: '0644' notify: restart roundcube - name: Start Roundcube community.docker.docker_compose_v2: project_src: "{{ roundcube_data_dir }}" state: present