From 61d1e4c072f2fbec1bd70c0d788d53abd9915dd7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <j.l.k@gmx.com>
Date: Sat, 19 Dec 2020 20:10:45 +0100
Subject: [PATCH] Add task to build archlinux-common-style

---
 roles/archmanweb/tasks/main.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/roles/archmanweb/tasks/main.yml b/roles/archmanweb/tasks/main.yml
index 343c70fc3..4581bd358 100644
--- a/roles/archmanweb/tasks/main.yml
+++ b/roles/archmanweb/tasks/main.yml
@@ -13,6 +13,8 @@
       - python-requests
       - python-xtarfile
       - uwsgi-plugin-python
+      - make
+      - sassc
 
 - name: make archmanweb user
   user: name=archmanweb shell=/bin/false home="{{ archmanweb_dir }}"
@@ -43,6 +45,14 @@
   become_user: archmanweb
   register: release
 
+- name: build archlinux-common-style
+  command:
+    cmd: make SASS=sassc
+    chdir: "{{ archmanweb_dir }}/repo/archlinux-common-style"
+  become: true
+  become_user: archmanweb
+  when: release.changed or archmanweb_forced_deploy
+
 - name: configure archmanweb
   template: src=local_settings.py.j2 dest={{ archmanweb_dir }}/repo/local_settings.py owner=archmanweb group=archmanweb mode=0660
   register: config
-- 
GitLab