aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/my_workspace/tasks/main.yml
blob: 1393a431bf34262e6acff5ca5824c6135472f952 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- 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.package:
    name:
      - git
      - make
    state: present

- name: Update projects
  ansible.builtin.include_tasks: project.yml
  loop: '{{ my_workspace_projects }}'
  loop_control:
    loop_var: project