forked from tylerlwsmith/x86-desktop-linux-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
72 lines (65 loc) · 1.74 KB
/
playbook.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
---
- name: Setup Linux Laptop
hosts: all
connection: paramiko_ssh
roles:
- role: geerlingguy.nodejs
become: yes
vars:
nodejs_version: "16.x"
nodejs_npm_global_packages:
- name: tldr
- name: yarn
- role: geerlingguy.pip
become: yes
vars:
pip_install_packages:
- name: ansible
- role: geerlingguy.docker
become: yes
- role: ngetchell.vscode
become: yes
vars:
vscode_extension:
- ms-python.python
- ms-python.vscode-pylance
- ms-azuretools.vscode-docker
- mrmlnc.vscode-duplicate
- calebporzio.better-phpunit
- bungcip.better-toml
- clinyong.vscode-css-modules
- mrmlnc.vscode-duplicate
- bmewburn.vscode-intelephense-client
- esbenp.prettier-vscode
- bradlc.vscode-tailwindcss
- svelte.svelte-vscode
tasks:
- name: Update all packages
become: yes
ansible.builtin.package:
name: "*"
state: latest
- name: Install packages
become: yes
ansible.builtin.package:
state: present
name:
- terminator
- vim
- name: Create projects directory
ansible.builtin.file:
path: ~/projects
state: directory
- name: Create contributions directory
ansible.builtin.file:
path: ~/contributions
state: directory
- name: Store current username
ansible.builtin.set_fact:
current_logged_in_user: "{{ ansible_user }}"
- name: Add current user to docker group
become: true
ansible.builtin.user:
name: "{{ current_logged_in_user }}"
groups: docker
append: yes