blob: 48af77bdcaa1b0316ecb36d0c443cab3761a4108 (
plain) (
tree)
|
|
- 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
- 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
|