-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.yml
126 lines (116 loc) · 2.68 KB
/
bootstrap.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
- hosts: localhost
gather_facts: true
become: true
become_user: root
vars:
basic_packages:
- base-devel
- zsh
- xmonad
- xmonad-contrib
- xmobar
- vim
- xorg-server
- xorg-xinit
- xorg-xrandr
- nvidia
- nvidia-settings
- nvidia-utils
- lightdm
- lightdm-gtk-greeter
- lightdm-gtk-greeter-settings
- nfs-utils
- firefox
- firefox-i18n-es-es
- rofi
- exa
- tldr
- diff-so-fancy
- bat
- ripgrep
- fzf
- fd
- fasd
- dunst
- libnotify
- feh
- mpv
- picom
- vifm
- python-pip
- lsof
- wget
- ffmpegthumbnailer
- imagemagick
- zathura
- zathura-pdf-mupdf
- xdotool
- xdo
- sxiv
- pamixer
- pulsemixer
- neofetch
- zenity
- unzip
- flameshot
- copyq
aur_packages:
- emojify
- nerd-fonts-complete
- wtfutil
- gconf
myshares:
- programs
- download
tasks:
- name: "Installing basic packages"
package:
name: "{{ item }}"
state: present
loop: "{{ basic_packages }}"
- name: "Checking YAY (AUR)"
stat:
path: /usr/bin/yay
register: yay
- name: "Cloning YAY (AUR)"
git:
repo: 'https://aur.archlinux.org/yay-git.git'
dest: /tmp/yay-git
when: yay.stat.exists == false
- name: "Making YAY (AUR)"
command: cd /tmp/yay-git; makepgk -i
when: yay.stat.exists == false
# - name: "Installing AUR packages"
# command: "yay --norebuild {{ item }}"
# loop:
# "{{ aur_packages }}"
# become: false
- name: "Creating Network Mountpoint Folders"
file:
path: "/media/{{ item }}"
state: directory
mode: '0755'
loop: "{{ myshares }}"
- name: "Mount Network Shares"
mount:
path: "/media/{{ item }}"
src: "//stoya.mh25.space/{{ item }}"
fstype: cifs
opts: credentials=/etc/.credentials,uid=1001,gid=1001,rw,iocharset=utf8,file_mode=0777,dir_mode=0777
state: present
loop: "{{ myshares }}"
- name: "Configure git"
git_config:
name: "{{ item.name }}"
scope: global
value: "{{ item.value }}"
loop:
- { name: "user.name", value: "Manuel Jimenez" }
- { name: "user.email", value: "mjimenez@mjimenez.net" }
- { name: "core.pager", value: "diff-so-fancy | less --tabs=4 -RFX" }
- name: "Install python packages"
pip:
name: ueberzug
extra_args: --user
become: false