mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Normalized cmp-docker-proxy include
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
---
|
||||
- name: "include docker and reverse proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
when: run_once_docker_simpleicons is not defined
|
||||
- block:
|
||||
- name: "load docker, proxy for '{{application_id}}'"
|
||||
include_role:
|
||||
name: cmp-docker-proxy
|
||||
|
||||
- name: "Copy '{{ application_id }}' files"
|
||||
template:
|
||||
src: "{{ item.source }}"
|
||||
dest: "{{ item.target }}"
|
||||
mode: '0755'
|
||||
loop:
|
||||
- { source: "server.js.j2", target: "{{ simpleicons_host_server_file }}" }
|
||||
- { source: "package.json.j2", target: "{{ simpleicons_host_package_file }}" }
|
||||
notify:
|
||||
- docker compose up
|
||||
when: run_once_docker_simpleicons is not defined
|
||||
|
||||
- name: run the simpleicons tasks once
|
||||
set_fact:
|
||||
run_once_docker_simpleicon: true
|
||||
- name: "Copy '{{ application_id }}' files"
|
||||
template:
|
||||
src: "{{ item.source }}"
|
||||
dest: "{{ item.target }}"
|
||||
mode: '0755'
|
||||
loop:
|
||||
- { source: "server.js.j2", target: "{{ simpleicons_host_server_file }}" }
|
||||
- { source: "package.json.j2", target: "{{ simpleicons_host_package_file }}" }
|
||||
notify:
|
||||
- docker compose up
|
||||
|
||||
- name: run the simpleicons tasks once
|
||||
set_fact:
|
||||
run_once_docker_simpleicon: true
|
||||
when: run_once_docker_simpleicons is not defined
|
||||
|
Reference in New Issue
Block a user