-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
79 lines (73 loc) · 1.66 KB
/
main.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
77
78
79
#!/usr/bin/env ansible-playbook
---
- name: Configure workstation
hosts: localhost
vars:
common_packaged_apps:
- ansible
- bat
- bottom
- fish
- git
- gitui
- git-filter-repo
- jq
- lsd
- neovim
- pandoc
- tmux
- ripgrep
- sd
- tealdeer
- uv # Python version and package manager
- zoxide
fedora_apps:
- fd-find
- emacs
- util-linux-user
brew_apps:
- fd
- emacs-plus@29
- cmake
brew_casks:
- calibre
- drawio
- firefox
- font-hack-nerd-font
- inkscape
- iterm2
- onedrive
- github
- logseq
- gimp
- signal
- wireshark
- logi-options-plus
- linearmouse
- rectangle
- kindle
- the-unarchiver
- krita
- kicad
- vial
- visual-studio-code
tasks:
- name: Fedora tasks
when: ansible_facts.distribution == "Fedora"
ansible.builtin.include_tasks:
file: "tasks/Fedora.yml"
- name: WSL2 Fedora tasks
when:
- ansible_facts.distribution_file_variety is defined
- ansible_facts.distribution_file_variety == "RedHat"
- ansible_facts.distribution == "Generic" # Dunno why they used this
ansible.builtin.include_tasks:
file: "tasks/Fedora.yml"
- name: MacOS tasks
when: ansible_facts.distribution == "MacOSX"
ansible.builtin.include_tasks:
file: "tasks/MacOS.yml"
- name: Configs for all unix-like OSs
when: ansible_facts.distribution != "Windows"
ansible.builtin.include_tasks:
file: "tasks/Unix_likes.yml"