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 yourls
|
||||
command:
|
||||
cmd: docker-compose -p yourls up -d --force-recreate
|
||||
chdir: "{{path_docker_compose_files}}yourls/"
|
||||
chdir: "{{docker_compose_instance_directory}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@@ -8,14 +8,14 @@
|
||||
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
||||
notify: restart nginx
|
||||
|
||||
- name: "create {{path_docker_compose_files}}yourls/"
|
||||
- name: "create {{docker_compose_instance_directory}}"
|
||||
file:
|
||||
path: "{{path_docker_compose_files}}yourls/"
|
||||
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}}yourls/docker-compose.yml"
|
||||
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||
notify: recreate yourls
|
||||
|
1
roles/docker-yourls/vars/main.yml
Normal file
1
roles/docker-yourls/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
docker_compose_instance_directory: "{{path_docker_compose_files}}yourls/"
|
Reference in New Issue
Block a user