blob: 9725f2d29c0b8dc4057bbb9ee6f3f219ff6fe70c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
- name: 'Install git'
become: true
become_method: 'doas'
package:
name: 'git'
state: 'present'
- name: 'Create domain level dir'
file:
path: '{{ sites_data_root }}/{{ item.name }}/html'
state: 'directory'
mode: '0755'
loop: '{{ websites }}'
- name: 'Clone all the website project repos'
git:
repo: '{{ item.git_url }}'
dest: '{{ sites_data_root }}/{{ item.name }}/html'
depth: 1
update: true
force: true
version: '{{ item.git_version }}'
umask: '002'
when: 'item.git_url is defined'
loop: '{{ websites }}'
|