blob: fe93e5932b6756ee4799f3000e3989a23a0d0361 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
- name: Install shell items
block:
- name: Setup ZSH
ansible.builtin.dnf:
name: "zsh"
state: latest
- name: Setup oh-my-zsh
become: true
become_user: aaditya
ansible.builtin.shell: 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended'
- name: Setup p10k, tmux and zshrc
ansible.builtin.copy:
src: shell/{{ item }}
dest: "/home/{{ config.username }}"
backup: yes
loop:
- .p10k.zsh
- .zshrc
- .tmux.conf
- name: Setup vimrc and vim bundles
ansible.builtin.copy:
src: shell/{{ item }}
dest: "/home/{{ config.username }}"
backup: yes
loop:
- .vimrc
- name: Setup vim/neovim directories
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config"
backup: yes
loop:
- nvim
when: 'config.config.install_shell'
- name: Install Dotfiles (Wayland)
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"
backup: yes
loop: "{{ config_wayland }}"
when: 'config.config.install_wayland'
- name: Install Dotfiles (Xorg)
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"
backup: yes
loop: "{{ config_xorg }}"
when: 'config.config.install_xorg'
- name: Install Dotfiles (All)
ansible.builtin.copy:
src: "{{ item }}"
dest: "/home/{{ config.username }}/.config/"
backup: yes
loop: "{{ config_all }}"
when: "'config.config.install_xorg' or 'config.config.install_wayland'"
|