-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu.yml
More file actions
150 lines (131 loc) · 3.55 KB
/
Copy pathubuntu.yml
File metadata and controls
150 lines (131 loc) · 3.55 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
- hosts: all
vars:
git_user: imamatory
git_email: imamatory@gmail.com
term: xterm-256color
tasks:
- apt_repository:
repo: ppa:neovim-ppa/stable
state: present
update_cache: yes
become: yes
- name: Upgrade all packages to the latest version
become: yes
apt:
name: "*"
state: latest
update_cache: yes
force_apt_get: True
- name: Install locales
become: yes
apt:
name: locales
state: latest
install_recommends: false
- name: Gen locale
become: yes
shell: locale-gen en_US.UTF-8
- name: Install base packages
become: yes
apt:
state: latest
install_recommends: false
name:
- sudo
- libfontconfig
- ca-certificates
- git
- curl
- wget
- make
- cmake
- sudo
- inotify-tools
- openssl
- openssh-client
- cargo
- xz-utils
- libfontconfig
- python
- name: Install docker
shell: "curl -fsSL get.docker.com | sh"
args:
creates: /usr/bin/docker
- name: "Install docker-compose"
become: yes
get_url:
url: "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-{{ ansible_system }}-{{ ansible_architecture }}"
dest: "/usr/local/bin/docker-compose"
mode: 0755
- name: Install exa
shell: "cargo install --force exa"
args:
creates: ~/.cargo/bin/exa
- name: Install dev packages
become: yes
apt:
state: latest
install_recommends: false
name:
- tig
- ruby
- ruby-dev
- nodejs
- npm
- neovim
- tmux
- zsh
- jq
- xclip
- neovim
- name: Install kitty-terminfo
become: yes
apt:
deb: "http://ftp.de.debian.org/debian/pool/main/k/kitty/kitty-terminfo_{{ version }}_all.deb"
vars:
version: 0.13.3-1
- name: Install ripgrep
become: yes
apt:
deb: "https://github.com/BurntSushi/ripgrep/releases/download/{{ version }}/ripgrep_{{ version }}_amd64.deb"
vars:
version: 0.10.0
- name: Install bat
become: yes
apt:
deb: "https://github.com/sharkdp/bat/releases/download/v{{ version }}/bat_{{ version }}_amd64.deb"
vars:
version: 0.10.0
- name: Install antibody
become: yes
shell: 'curl -sSL git.io/antibody | bash -s'
args:
creates: /usr/local/bin/antibody
- name: Install fzf
become: yes
shell: |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf \
&& ~/.fzf/install --key-bindings --update-rc --completion \
&& cp ~/.fzf/bin/fzf /usr/local/bin
args:
creates: /usr/local/bin/fzf
environment:
TERM: "{{ term }}"
- name: Install oh-my-zsh
shell: |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
args:
creates: ~/.oh-my-zsh/
- name: Install spacemacs
git:
repo: "https://github.com/syl20bnr/spacemacs"
dest: ~/.emacs.d
- name: Setup git
shell: |
git config --global user.name {{ git_user }}
git config --global user.email {{ git_email }}
git config --global credential.helper cache
- name: Setup shell
become: yes
shell: "chsh $USER -s $(which zsh);"