-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu.yaml
More file actions
55 lines (48 loc) · 1.32 KB
/
ubuntu.yaml
File metadata and controls
55 lines (48 loc) · 1.32 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
- name: Ubuntu
become: yes
hosts: localhost
connection: local
vars_prompt:
- name: "user"
prompt: "Enter the username to configure"
private: no
tasks:
- ansible.builtin.package_facts: manager=apt
- name: Configure Nodesoource repository
ansible.builtin.shell:
creates: /etc/apt/sources.list.d/nodesource.list
cmd: curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
register: nodesource_repo
- name: Repositories
ansible.builtin.apt_repository:
repo: "{{ item }}"
update_cache: no
register: repositories
with_items:
- ppa:neovim-ppa/unstable
- name: Packages
ansible.builtin.apt:
install_recommends: no
update_cache: "{{ nodesource_repo.changed or repositories.changed }}"
name:
- curl
- fish
- graphviz
- neovim
- nodejs
- screen
- shellcheck
- xclip
- name: Configure Shell
ansible.builtin.user:
name: "{{ user }}"
shell: /usr/bin/fish
state: present
- name: Install starship
ansible.builtin.shell:
creates: /usr/local/bin/starship
cmd: curl -sS https://starship.rs/install.sh | sh -s -- -y
- name: Install uv
ansible.builtin.shell:
creates: "/home/{{ user }}/.local/bin/uv"
cmd: curl -LsSf https://astral.sh/uv/install.sh | sh