-
Notifications
You must be signed in to change notification settings - Fork 0
/
tools.yml
76 lines (67 loc) · 1.77 KB
/
tools.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
- name: Prepare Ubuntu Desktop
hosts: localhost
become: true
vars:
apt_repositories:
- ppa:hluk/copyq
apt_packages:
- curl
- wget
- gdebi
- git
- zsh
- htop
- flameshot
- firefox
- libreoffice
- xclip
- copyq
snap_packages:
- discord
- postman
- slack
- spotify
- telegram-desktop
warp_deb_url: "https://releases.warp.dev/stable/v0.2024.04.23.08.01.stable_03/warp-terminal_0.2024.04.23.08.01.stable.03_amd64.deb"
warp_deb_dest: "/tmp/warp.deb"
tasks:
- name: Add apt repositories
ansible.builtin.apt_repository:
repo: "{{ item }}"
state: present
loop: "{{ apt_repositories }}"
tags: apt_repositories
- name: Update and upgrade all packages to the latest version
ansible.builtin.apt:
update_cache: true
upgrade: dist
cache_valid_time: 3600
tags: update_upgrade
- name: Install apt packages
ansible.builtin.apt:
name: "{{ item }}"
state: present
loop: "{{ apt_packages }}"
tags: apt_packages
- name: Install Visual Studio Code with classic confinement
ansible.builtin.snap:
name: code
state: present
classic: true
tags: snap_packages
- name: Install snap packages
ansible.builtin.snap:
name: "{{ item }}"
state: present
loop: "{{ snap_packages }}"
tags: snap_packages
- name: Download the warp.deb file
ansible.builtin.get_url:
url: "{{ warp_deb_url }}"
dest: "{{ warp_deb_dest }}"
tags: warp_install
- name: Install the warp.deb file
ansible.builtin.apt:
deb: "{{ warp_deb_dest }}"
state: present
tags: warp_install