From 6bc20b8e93f4e1faaab98cd123930ffd7d4ecbac Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Thu, 2 Jan 2025 15:07:43 +0100 Subject: [PATCH] [kwerenda] Deploy HTML files. --- kwerenda.git/deploy.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kwerenda.git/deploy.yaml b/kwerenda.git/deploy.yaml index 29beca3..ed6b03a 100644 --- a/kwerenda.git/deploy.yaml +++ b/kwerenda.git/deploy.yaml @@ -45,6 +45,19 @@ become: true with_items: "{{ ansible_local.env.vars.databases | split }}" + - name: Create destination directory + file: + path: "{{ dest }}" + state: directory + mode: 0775 + owner: git + group: www-data + become: true + - name: Checkout kwerenda files to the destination directory + command: /usr/bin/git --work-tree={{ dest }} --git-dir={{ repo }} \ + checkout main --force *.css *.html *.js + become: true + - name: Install nginx package: name: nginx -- 2.39.5