mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
29 lines
795 B
YAML
29 lines
795 B
YAML
|
- name: Get the current Unix timestamp as version
|
||
|
set_fact:
|
||
|
global_css_version: "{{ ansible_date_time.epoch }}"
|
||
|
when: run_once_nginx_global_css is not defined
|
||
|
|
||
|
- name: Ensure {{nginx.directories.global}} directory exists
|
||
|
file:
|
||
|
path: "{{nginx.directories.global}}"
|
||
|
state: directory
|
||
|
owner: "{{nginx.user}}"
|
||
|
group: "{{nginx.user}}"
|
||
|
mode: '0755'
|
||
|
when: run_once_nginx_global_css is not defined
|
||
|
|
||
|
- name: Deploy global.css from template
|
||
|
template:
|
||
|
src: global.css.j2
|
||
|
dest: "{{global_css_destination}}"
|
||
|
owner: "{{nginx.user}}"
|
||
|
group: "{{nginx.user}}"
|
||
|
mode: '0644'
|
||
|
when: run_once_nginx_global_css is not defined
|
||
|
|
||
|
- name: run the global css tasks once
|
||
|
set_fact:
|
||
|
run_once_nginx_global_css: true
|
||
|
when: run_once_nginx_global_css is not defined
|
||
|
|