-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu-playbook.yml
More file actions
100 lines (84 loc) · 2.35 KB
/
ubuntu-playbook.yml
File metadata and controls
100 lines (84 loc) · 2.35 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
---
- name: Setup Dev environment on Ubuntu
hosts: localhost
connection: local
tasks:
- name: Add Lazygit repo
apt_repository:
repo: ppa:lazygit-team/release
state: present
- name: Add Neovim repo
apt_repository:
repo: ppa:neovim-ppa/stable
state: present
- name: Add Git repo
apt_repository:
repo: ppa:git-core/ppa
state: present
- name: Add Yarn signing key
apt_key:
url: https://dl.yarnpkg.com/debian/pubkey.gpg
state: present
- name: Add Yarn repo
apt_repository:
repo: deb https://dl.yarnpkg.com/debian/ stable main
filename: yarn
state: present
- name: Add Postgresql signing key
apt_key:
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
state: present
- name: Add Postgresql repo
apt_repository:
repo: deb http://apt.postgresql.org/pub/repos/apt bionic-pgdg main
filename: pgdg
state: present
- name: Add Crystal Lang signing key
apt_key:
url: https://keybase.io/crystal/pgp_keys.asc
state: present
- name: Add Crystal Lang repo
apt_repository:
repo: deb https://dist.crystal-lang.org/apt crystal main
filename: crystal
state: present
- name: Add Google Chrome repo
apt_repository:
repo: deb http://dl.google.com/linux/chrome/deb/ stable main
filename: google-chrome
state: present
- name: Install packages
apt:
pkg:
- curl
- wget
- git
- vim
- neovim
- lazygit
- tmux
- zsh
# for zplug
- gawk
- postgresql-12
- libpq-dev
- pgadmin4
- yarn
# - crystal
# - google-chrome-stable
update_cache: yes
cache_valid_time: 3600
state: latest
- name: Install kubectl
command: sudo snap install kubectl --classic
args:
creates: /snap/bin/kubectl
# FIXME:
# - name: Install Helm 3
# command: curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
# args:
# creates: /usr/local/bin/helm
- name: Map capslock to ctrl key (bash)
lineinfile:
path: ~/.bashrc
line: setxkbmap -option caps:ctrl_modifier