mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 19:57:16 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
@@ -5,4 +5,4 @@
|
||||
- run_once_srv_web_7_4_core is not defined
|
||||
|
||||
- name: "deploy the logout.js"
|
||||
include_tasks: "deploy.yml"
|
||||
include_tasks: "02_deploy.yml"
|
16
roles/srv-web-7-7-inj-logout/tasks/02_deploy.yml
Normal file
16
roles/srv-web-7-7-inj-logout/tasks/02_deploy.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Deploy logout.js
|
||||
template:
|
||||
src: logout.js.j2
|
||||
dest: "{{ INJ_LOGOUT_JS_DESTINATION }}"
|
||||
owner: "{{ NGINX.USER }}"
|
||||
group: "{{ NGINX.USER }}"
|
||||
mode: '0644'
|
||||
|
||||
- name: Get stat for logout.js
|
||||
stat:
|
||||
path: "{{ INJ_LOGOUT_JS_DESTINATION }}"
|
||||
register: INJ_LOGOUT_JS_STAT
|
||||
|
||||
- name: Set INJ_LOGOUT_JS_VERSION
|
||||
set_fact:
|
||||
INJ_LOGOUT_JS_VERSION: "{{ INJ_LOGOUT_JS_STAT.stat.mtime }}"
|
@@ -1,16 +0,0 @@
|
||||
- name: Deploy logout.js
|
||||
template:
|
||||
src: logout.js.j2
|
||||
dest: "{{ inj_logout_js_destination }}"
|
||||
owner: "{{ nginx.user }}"
|
||||
group: "{{ nginx.user }}"
|
||||
mode: '0644'
|
||||
|
||||
- name: Get stat for logout.js
|
||||
stat:
|
||||
path: "{{ inj_logout_js_destination }}"
|
||||
register: inj_logout_js_stat
|
||||
|
||||
- name: Set inj_logout_js_version
|
||||
set_fact:
|
||||
inj_logout_js_version: "{{ inj_logout_js_stat.stat.mtime }}"
|
@@ -8,11 +8,11 @@
|
||||
set_fact:
|
||||
logout_code: "{{ lookup('template', 'logout_one_liner.js.j2') }}"
|
||||
|
||||
- name: "Collapse logout code into one-liner for '{{application_id}}'"
|
||||
- name: "Collapse logout code into one-liner for '{{ application_id }}'"
|
||||
set_fact:
|
||||
logout_code_one_liner: "{{ logout_code | to_one_liner }}"
|
||||
|
||||
- name: "Append logout CSP hash for '{{application_id}}'"
|
||||
- name: "Append logout CSP hash for '{{ application_id }}'"
|
||||
set_fact:
|
||||
applications: "{{ applications | append_csp_hash(application_id, logout_code_one_liner) }}"
|
||||
changed_when: false
|
||||
|
Reference in New Issue
Block a user