mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Refactor common dotfiles deployment and remove duplicate fastfetch
This commit is contained in:
@@ -13,3 +13,13 @@ common_packages:
|
||||
- zip
|
||||
- vim
|
||||
- fzf
|
||||
|
||||
common_dotfiles:
|
||||
- name: .bashrc
|
||||
src: .bashrc
|
||||
dest: .bashrc
|
||||
mode: "0644"
|
||||
- name: .bash_profile
|
||||
src: .bash_profile
|
||||
dest: .bash_profile
|
||||
mode: "0644"
|
||||
|
||||
@@ -6,7 +6,6 @@ void_packages_base:
|
||||
- vsv
|
||||
- bat
|
||||
- delta
|
||||
- fastfetch
|
||||
- xorg-minimal
|
||||
- xorg-fonts
|
||||
- elogind
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
---
|
||||
- name: Copy .bashrc
|
||||
- name: Copy common dotfiles
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/common/.bashrc"
|
||||
dest: "{{ user_home }}/.bashrc"
|
||||
src: "{{ playbook_dir }}/../dotfiles/common/{{ item.src }}"
|
||||
dest: "{{ user_home }}/{{ item.dest }}"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0644"
|
||||
|
||||
- name: Copy .bash_profile
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/common/.bash_profile"
|
||||
dest: "{{ user_home }}/.bash_profile"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0644"
|
||||
mode: "{{ item.mode }}"
|
||||
loop: "{{ common_dotfiles | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
|
||||
Reference in New Issue
Block a user