Browse Source

ansible: ensure CSS directory exists before starting boussole service

merge-requests/157/head
Andrew Shu 6 months ago
parent
commit
0b2b868c64
  1. 12
      ansible/roles/boussole/tasks/main.yml

12
ansible/roles/boussole/tasks/main.yml

@ -13,12 +13,6 @@
group: root group: root
mode: 0644 mode: 0644
- name: Start and enable boussole service
service:
name: boussole
state: started
enabled: true
- name: Create directory for compiled CSS - name: Create directory for compiled CSS
file: file:
path: "{{ app_dir }}/static/css" path: "{{ app_dir }}/static/css"
@ -27,6 +21,12 @@
group: "{{ app_username }}" group: "{{ app_username }}"
mode: 0755 mode: 0755
- name: Start and enable boussole service
systemd_service:
name: boussole
state: started
enabled: true
- name: Check if any compiled CSS files exist - name: Check if any compiled CSS files exist
find: find:
path: "{{ app_dir }}/static/css" path: "{{ app_dir }}/static/css"

Loading…
Cancel
Save