ansible-role-git/tasks/main.yml

16 lines
356 B
YAML
Raw Normal View History

2022-04-11 11:04:14 +00:00
---
2023-02-08 17:23:05 +00:00
- name: Include OS-specific variables
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
2022-04-11 11:04:14 +00:00
- name: Install git and dependencies
2023-02-08 17:23:05 +00:00
ansible.builtin.package:
2022-04-11 11:04:14 +00:00
name: "{{ item }}"
state: present
with_items: "{{ git_package_names }}"
- name: Configure git
ansible.builtin.include_tasks: git_user.yml
2022-04-11 11:04:14 +00:00
with_dict:
2023-02-08 17:23:05 +00:00
- "{{ git_users }}"