-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
114 lines (108 loc) · 2.71 KB
/
Copy pathplaybook.yml
File metadata and controls
114 lines (108 loc) · 2.71 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
- name: "Install neovim"
import_playbook: playbook-nvim.yml
- name: "Install OS tools"
hosts: localhost
pre_tasks:
- name: Check if vars/main.yml exists
ansible.builtin.stat:
path: vars/main.yml
register: vars_main_file
tags: always
- name: Load vars/main.yml if exists
ansible.builtin.include_vars:
file: vars/main.yml
when: vars_main_file.stat.exists
tags: always
- name: Install base packages
become: true
ansible.builtin.apt:
update_cache: true
state: present
name:
- git
- vim
- curl
- snapd
- wget
- openssh-server
- lsof
- libfuse2
# for gcloud
- python3
# for terraform
- gnupg
- software-properties-common
- apt-transport-https
- fonts-jetbrains-mono
# other
- python3-pip
- python3-full
- pipx
when: ansible_run_tags | difference(['all']) | length == 0
- name: Gather service facts
ansible.builtin.service_facts:
tags: always
- name: Enable and start SSH service
become: true
ansible.builtin.systemd:
name: ssh
enabled: true
state: started
when:
- ansible_run_tags | difference(['all']) | length == 0
- "'ssh.service' in ansible_facts.services"
- name: "Create {{ ansible_facts['env']['HOME'] }}/sources"
ansible.builtin.file:
path: "{{ ansible_facts['env']['HOME'] }}/sources"
state: directory
mode: "0755"
when: ansible_run_tags | difference(['all']) | length == 0
roles:
- role: me.ollama
tags: ollama
- role: me.golang
tags: golang
- role: me.git
tags: git
- role: me.docker
tags: docker
- role: me.kitty
tags: kitty
- role: me.terminator
tags: terminator
- role: me.nvim/core
tags: [nvim_core, nvim]
- role: me.tmux
tags: tmux
- role: me.zsh
tags: zsh
- role: me.chrome
tags: chrome
# - role: me.jetbrains_toolbox
# tags: jetbrains_toolbox
- role: me.terraform
tags: terraform
- role: me.rust
tags: rust
- role: me.helm
tags: helm
- role: me.devtoys
tags: devtoys
- role: me.postman
tags: postman
- role: me.insomnia
tags: insomnia
- role: me.dbeaver
tags: dbeaver
- role: me.nodejs
tags: nodejs
- role: me.gcloud
tags: gcloud
- role: me.vscode
tags: vscode
- role: me.devtools/ansible
tags: ["devtools", "ansible"]
- role: me.libreoffice
tags: libreoffice
- role: me.onlyoffice
tags: onlyoffice