mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 17:01:05 +01:00
33 lines
955 B
YAML
33 lines
955 B
YAML
---
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
file:
|
|
path: "{{docker_compose_instance_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: pull app repository
|
|
git:
|
|
repo: "https://github.com/kevinveenbirkenbach/roulette-wheel.git"
|
|
dest: "{{app_path}}"
|
|
update: yes
|
|
notify: recreate and build roulette-wheel
|
|
become: true
|
|
register: git_result
|
|
ignore_errors: true
|
|
|
|
- name: Warn if repo is not reachable
|
|
debug:
|
|
msg: "Warning: Repository is not reachable."
|
|
when: git_result.failed
|
|
|
|
- name: add docker-compose.yml
|
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
|
notify: recreate and build roulette-wheel
|
|
|
|
- name: add Dockerfile
|
|
template: src=Dockerfile.j2 dest={{docker_compose_instance_directory}}Dockerfile
|
|
notify: recreate and build roulette-wheel
|