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