mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-06 10:21:34 +02:00
Finished Iframe Implementation
This commit is contained in:
12
roles/nginx-modifier-iframe/tasks/main.yml
Normal file
12
roles/nginx-modifier-iframe/tasks/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: Load iFrame handler JS template
|
||||
set_fact:
|
||||
iframe_code: "{{ lookup('template','iframe-handler.js.j2') }}"
|
||||
|
||||
- name: Collapse iFrame code into one-liner
|
||||
set_fact:
|
||||
iframe_code_one_liner: "{{ iframe_code | to_one_liner }}"
|
||||
|
||||
- name: Append iFrame CSP hash
|
||||
set_fact:
|
||||
applications: "{{ applications | append_csp_hash(application_id, iframe_code_one_liner) }}"
|
||||
changed_when: false
|
Reference in New Issue
Block a user