Refactored folder structure

This commit is contained in:
2021-10-18 18:46:58 +02:00
parent f33c63fbb2
commit 51e0a89247
10 changed files with 62 additions and 19 deletions

View File

@@ -7,23 +7,22 @@
notify: restart nginx
# @todo rename
- name: "create /usr/local/bin/docker-nextcloud/"
- name: "create /home/administrator/volumes/docker/nextcloud/"
file:
path: "/usr/local/bin/docker-nextcloud"
path: "/home/administrator/volumes/docker/nextcloud"
state: directory
mode: 0755
- name: configure nginx.conf
template: src=templates/nginx.conf.j2 dest=/usr/local/bin/docker-nextcloud/nginx.conf
template: src=templates/nginx.conf.j2 dest=/home/administrator/volumes/docker/nextcloud/nginx.conf
notify: restart nginx
# @todo rename
- name: "create /usr/local/bin/nextcloud/"
- name: "create /home/administrator/docker-compose/nextcloud/"
file:
path: "/usr/local/bin/nextcloud"
path: "/home/administrator/docker-compose/nextcloud/"
state: directory
mode: 0755
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest=/usr/local/bin/nextcloud/docker-compose.yml
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/nextcloud/docker-compose.yml
notify: recreate nextcloud