46 lines
899 B
YAML
46 lines
899 B
YAML
---
|
|
- name: Install git package
|
|
ansible.builtin.package:
|
|
name:
|
|
- git
|
|
- git-delta
|
|
- lazygit
|
|
state: present
|
|
become: true
|
|
tags: pc
|
|
|
|
- name: Create a config directory if it doesn't exist
|
|
ansible.builtin.file:
|
|
path: ~/.config/git
|
|
state: directory
|
|
mode: '0755'
|
|
tags: pc
|
|
|
|
- name: Copy over config for T460p
|
|
ansible.builtin.copy:
|
|
src: config_t460p
|
|
dest: ~/.config/git/config
|
|
mode: '0644'
|
|
tags: t460p
|
|
|
|
- name: Copy over config for qwerty
|
|
ansible.builtin.copy:
|
|
src: config_qwerty
|
|
dest: ~/.config/git/config
|
|
mode: '0644'
|
|
tags: qwerty
|
|
|
|
- name: Create config directory for lazygit
|
|
ansible.builtin.file:
|
|
path: ~/.config/lazygit
|
|
state: directory
|
|
mode: '0755'
|
|
tags: pc
|
|
|
|
- name: Copy over config for lazygit
|
|
ansible.builtin.copy:
|
|
src: lazygit.yml
|
|
dest: ~/.config/lazygit/config.yml
|
|
mode: '0644'
|
|
tags: pc
|