dotfiles/roles/git/tasks/main.yaml

23 lines
465 B
YAML
Raw Normal View History

---
- 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
2022-03-30 22:58:01 +00:00
- name: Local configuration
ansible.builtin.template:
src: gitconfig.local.j2
dest: "{{ ansible_user_dir }}/.gitconfig.local"