blob: 81344c380cf38bdc2d2984999ef5c19854f35dd3 (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
|
- name: Create workspace directory
become: true
ansible.builtin.file:
path: '{{ my_workspace_dir }}'
state: directory
owner: '{{ ansible_user }}'
group: '{{ ansible_user }}'
mode: '750'
- name: Install dependencies
become: true
ansible.builtin.apt:
name:
- git
- make
state: present
install_recommends: false
- name: Configure git
block:
- name: Set user.name
community.general.git_config:
scope: global
name: user.name
value: '{{ git_name }}'
- name: Set user.email
community.general.git_config:
scope: global
name: user.email
value: '{{ git_email }}'
- name: Update projects
ansible.builtin.include_tasks: project.yml
loop: '{{ my_workspace_projects }}'
loop_control:
loop_var: project
|