23 lines
465 B
YAML
23 lines
465 B
YAML
---
|
|
- name: Install
|
|
ansible.builtin.package:
|
|
name:
|
|
- git
|
|
state: latest
|
|
become: true
|
|
|
|
- name: Configuration
|
|
ansible.builtin.file:
|
|
src: "{{ role_path }}/files/{{ item }}"
|
|
dest: "{{ ansible_user_dir }}/{{ item }}"
|
|
state: link
|
|
with_items:
|
|
- .gitconfig
|
|
- .gitignore-global
|
|
- .gitmessage
|
|
|
|
- name: Local configuration
|
|
ansible.builtin.template:
|
|
src: gitconfig.local.j2
|
|
dest: "{{ ansible_user_dir }}/.gitconfig.local"
|