mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Refactor and cleanup OIDC, desktop, and web-app roles
- Improved OIDC variable definitions (12_oidc.yml) - Added account/security/profile URLs - Restructured web-app-desktop tasks and JS handling - Introduced oidc.js and iframe.js with runtime loader - Fixed nginx.conf, LDAP, and healthcheck templates spacing - Improved Lua injection for CSP and snippets - Fixed typos (WordPress, receive, etc.) - Added silent-check-sso nginx location Conversation: https://chatgpt.com/share/68ae0060-4fac-800f-9f02-22592a4087d3
This commit is contained in:
17
roles/web-app-desktop/tasks/_javascript_file.yml
Normal file
17
roles/web-app-desktop/tasks/_javascript_file.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- name: Deploy {{ js_file_name }}
|
||||
template:
|
||||
src: "javascript/{{ js_file_name }}.j2"
|
||||
dest: "{{ DESKTOP_JS_SERVER_DIR }}/{{ js_file_name }}"
|
||||
owner: "{{ NGINX.USER }}"
|
||||
group: "{{ NGINX.USER }}"
|
||||
mode: '0644'
|
||||
|
||||
- name: Get stat for {{ js_file_name }}
|
||||
stat:
|
||||
path: "{{ DESKTOP_JS_SERVER_DIR }}/{{ js_file_name }}"
|
||||
register: javascript_file_stat
|
||||
|
||||
- name: Update javascript_file_version with highest mtime
|
||||
set_fact:
|
||||
javascript_file_version: >-
|
||||
{{ [ (javascript_file_version | default(0) | int), (javascript_file_stat.stat.mtime | int) ] | max }}
|
Reference in New Issue
Block a user