2025-02-19 13:46:45 +01:00
|
|
|
# Load this role via nginx-modifier-all for consistency
|
|
|
|
|
2025-02-07 13:39:46 +01:00
|
|
|
- name: Deploy global.css from template
|
|
|
|
template:
|
|
|
|
src: global.css.j2
|
|
|
|
dest: "{{global_css_destination}}"
|
|
|
|
owner: "{{nginx.user}}"
|
|
|
|
group: "{{nginx.user}}"
|
|
|
|
mode: '0644'
|
2025-02-19 13:46:45 +01:00
|
|
|
when: run_once_nginx_global_css is not defined
|
2025-02-07 13:39:46 +01:00
|
|
|
|
2025-02-07 18:09:18 +01:00
|
|
|
- name: Get stat for global.css destination file
|
|
|
|
stat:
|
|
|
|
path: "{{ global_css_destination }}"
|
|
|
|
register: global_css_stat
|
2025-02-19 13:46:45 +01:00
|
|
|
when: run_once_nginx_global_css is not defined
|
2025-02-07 18:09:18 +01:00
|
|
|
|
|
|
|
- name: Set global_css_version to file modification time
|
2025-02-07 13:39:46 +01:00
|
|
|
set_fact:
|
2025-02-07 18:09:18 +01:00
|
|
|
global_css_version: "{{ global_css_stat.stat.mtime }}"
|
2025-02-19 13:46:45 +01:00
|
|
|
when: run_once_nginx_global_css is not defined
|
2025-02-07 13:39:46 +01:00
|
|
|
|
2025-02-07 18:09:18 +01:00
|
|
|
- name: Mark global css tasks as run once
|
|
|
|
set_fact:
|
|
|
|
run_once_nginx_global_css: true
|
|
|
|
when: run_once_nginx_global_css is not defined
|