infra/roles/owncloud/tasks/main.yml
2024-02-27 14:57:36 -05:00

38 lines
865 B
YAML

---
- name: ensure owncloud docker/compose exist
file:
path: /etc/docker/compose/owncloud
state: directory
owner: root
group: root
mode: 0700
- name: build owncloud docker-compose.yml.j2
template:
src: ../templates/docker-compose.yml.j2
dest: /etc/docker/compose/owncloud/docker-compose.yml
owner: root
group: root
mode: u=rw,g=r,o=r
- name: ensure owncloud config volume exist
file:
path: "{{ owncloud_mount }}/config"
state: directory
owner: www-data
group: root
- name: build owncloud config.php
template:
src: ../templates/config.php.j2
dest: "{{ owncloud_mount }}/config/config.php"
owner: www-data
group: root
mode: 0750
- name: daemon-reload and enable owncloud
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@owncloud