mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored use of variables
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: recreate nextcloud
|
||||
command:
|
||||
cmd: docker-compose -p nextcloud up -d --force-recreate
|
||||
chdir: "{{path_docker_compose_files}}nextcloud/"
|
||||
chdir: "{{docker_compose_instance_directory}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@@ -20,14 +20,14 @@
|
||||
dest: "{{path_docker_volumes}}nextcloud/nginx.conf"
|
||||
notify: recreate nextcloud
|
||||
|
||||
- name: "create {{path_docker_compose_files}}nextcloud/"
|
||||
- name: "create {{docker_compose_instance_directory}}"
|
||||
file:
|
||||
path: "{{path_docker_compose_files}}nextcloud/"
|
||||
path: "{{docker_compose_instance_directory}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add docker-compose.yml
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{path_docker_compose_files}}nextcloud/docker-compose.yml"
|
||||
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||
notify: recreate nextcloud
|
||||
|
2
roles/docker-nextcloud/vars/main.yml
Normal file
2
roles/docker-nextcloud/vars/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
docker_compose_instance_directory: "{{path_docker_compose_files}}nextcloud/"
|
Reference in New Issue
Block a user