-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.yaml
88 lines (84 loc) · 2.31 KB
/
development.yaml
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
- name: "Setup development tools."
hosts: localhost
connection: local
tasks:
# apt tools
- name: apt - install dev tools
become: yes
apt:
name:
- git
- pipx
- podman
- snapd # used to install vscode
- name: podman-compose - install with pipx
community.general.pipx:
name: podman-compose
- name: poetry - install with pipx
community.general.pipx:
name: poetry
# install pyenv (and python build dependencies)
- name: pyenv - check if folder ~/.pyenv exists
stat:
path: ~/.pyenv
register: pyenv_folder
- name: pyenv - install
shell: curl https://pyenv.run | bash
when: not pyenv_folder.stat.exists
- name: apt - install python build dependencies
become: yes
apt:
name:
- make
- build-essential
- libssl-dev
- zlib1g-dev
- libbz2-dev
- libreadline-dev
- libsqlite3-dev
- wget
- curl
- llvm
- libncursesw5-dev
- xz-utils
- tk-dev
- libxml2-dev
- libxmlsec1-dev
- libffi-dev
- liblzma-dev
# configure fish shell
- name: fish - install
become: yes
apt:
name: fish
- name: fish - create config dir
file:
path: ~/.config/fish/
state: directory
- name: fish - copy config file
file:
src: "{{ playbook_dir }}/config/fish/config.fish"
dest: ~/.config/fish/config.fish
state: link
force: true
# install vscode
- name: vscode - install with snap
become: yes
snap:
name: code
classic: yes
# install vscodium
- name: vscodium - add release key
become: yes
apt_key:
id: 1302DE60231889FE1EBACADC54678CF75A278D9C
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
keyring: /usr/share/keyrings/vscodium-archive-keyring.gpg
- name: vscodium - add repository
become: yes
apt_repository:
repo: deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg arch=amd64] https://download.vscodium.com/debs vscodium main
- name: vscodium - apt install
become: yes
apt:
name: codium