mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
- Rename sys-svc-webserver -> sys-svc-webserver-core - Rename sys-stk-front-pure -> sys-svc-webserver-https - Update includes, run_once flags, and docs across: * sys-ctl-mtn-cert-renew * sys-front-inj-* * sys-stk-front-proxy * sys-svc-certs * sys-svc-cln-domains * web-opt-rdr-* * web-svc-* - Remove redundant webserver include in web-opt-rdr-www - Fix documentation links Ref: ChatGPT conversation https://chatgpt.com/share/68d6cea2-3570-800f-acb3-c3277317f17b
23 lines
832 B
YAML
23 lines
832 B
YAML
- block:
|
|
|
|
- name: Include dependency 'sys-svc-webserver-core'
|
|
include_role:
|
|
name: sys-svc-webserver-core
|
|
when: run_once_sys_svc_webserver_core is not defined
|
|
- include_tasks: utils/run_once.yml
|
|
when: run_once_sys_front_inj_javascript is not defined
|
|
|
|
- name: "Load JavaScript code for '{{ application_id }}'"
|
|
set_fact:
|
|
javascript_code: "{{ lookup('template', modifier_javascript_template_file) }}"
|
|
|
|
- name: "Collapse Javascript code into one-liner for '{{ application_id }}'"
|
|
set_fact:
|
|
javascript_code_one_liner: "{{ javascript_code | to_one_liner }}"
|
|
|
|
- name: "Append Javascript CSP hash for '{{ application_id }}'"
|
|
set_fact:
|
|
applications: "{{ applications | append_csp_hash(application_id, javascript_code_one_liner) }}"
|
|
changed_when: false
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|