forked from itlackey/system-setups
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_setup.yaml
More file actions
118 lines (101 loc) · 2.95 KB
/
base_setup.yaml
File metadata and controls
118 lines (101 loc) · 2.95 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
---
- name: Base setup for ubuntu system
hosts: localhost
become: yes
gather_facts: true
vars_files:
- ./vars.yml
tasks:
- name: Update repositories cache
apt:
update_cache: yes
upgrade: "{{ upgrade }}"
- name: "Add nodejs apt key"
apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
state: present
- name: "Add nodejs ppa for apt repo"
apt_repository:
repo: deb https://deb.nodesource.com/node_18.x jammy main
- name: "Add chrome apt key"
apt_key:
url: https://dl.google.com/linux/linux_signing_key.pub
state: present
- name: Add Google Chrome repository
ansible.builtin.apt_repository:
repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
state: present
- name: Add Vivaldi key
apt_key:
url: https://repo.vivaldi.com/archive/linux_signing_key.pub
state: present
- name: Add Vivaldi repository
ansible.builtin.apt_repository:
repo: "deb [arch=amd64] http://repo.vivaldi.com/archive/deb/ stable main"
state: present
- name: Add Docker key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
keyring: /etc/apt/keyrings/docker.gpg
state: present
- name: Add Docker repository
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable"
state: present
- name: Update repositories cache
apt:
update_cache: yes
- name: Install required packages
apt:
name:
- git
- bash-completion
- curl
- python3-apt
- apt-transport-https
- ca-certificates
- gnupg
- software-properties-common
- lsb-release
- yakuake
- wget
- vivaldi-stable
- google-chrome-stable
- nodejs
- docker-ce
- docker-ce-cli
- containerd.io
state: present
- name: Install VSCode
ansible.builtin.apt:
deb: https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64
state: present
- name: Install .NET SDK
apt:
name: dotnet-sdk-6.0
state: present
update_cache: yes
- name: Install Zoom
apt:
deb: https://zoom.us/client/latest/zoom_amd64.deb
state: present
- name: Add current user to docker group
user:
name: "{{ ansible_user_id }}"
groups: docker
append: yes
- name: Install snaps
community.general.snap:
name:
- postman
- storage-explorer
- git_config:
name: user.email
scope: global
value: "{{ email }}"
become: no
- community.general.git_config:
name: "user.name"
scope: global
value: "{{ username }}"
become: no