30 lines
792 B
YAML
30 lines
792 B
YAML
---
|
|
- name: Create Roundcube directories
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: '0755'
|
|
loop:
|
|
- "{{ roundcube_data_dir }}"
|
|
- "{{ roundcube_data_dir }}/config"
|
|
|
|
- name: Deploy Roundcube custom branding config
|
|
ansible.builtin.template:
|
|
src: custom.inc.php.j2
|
|
dest: "{{ roundcube_data_dir }}/config/custom.inc.php"
|
|
mode: '0644'
|
|
notify: restart roundcube
|
|
|
|
- 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
|
|
when: not (molecule_test_mode | default(false))
|