mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 18:05:09 +00:00
Removed redundancies and simplified run_once flag
This commit is contained in:
22
roles/web-svc-simpleicons/tasks/01_core.yml
Normal file
22
roles/web-svc-simpleicons/tasks/01_core.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- name: "load docker, proxy for '{{ application_id }}'"
|
||||
include_role:
|
||||
name: sys-stk-full-stateless
|
||||
vars:
|
||||
aca_origin: "* always"
|
||||
aca_methods: "'GET, OPTIONS' always"
|
||||
aca_headers: '"Origin, X-Requested-With, Content-Type, Accept, Authorization" always'
|
||||
|
||||
- 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
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
Reference in New Issue
Block a user