-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
77 lines (60 loc) · 1.81 KB
/
local.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
---
- name: Setup my workstation
hosts: localhost
connection: local
become: true
vars_files:
- vars/main.yml
handlers:
- name: Reload /etc/profile
ansible.builtin.import_tasks: handlers/main.yml
pre_tasks:
- name: End play if the system is not Debian
ansible.builtin.meta: end_play
when: ansible_facts['os_family'] != 'Debian'
- name: Update package caches if required
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
tasks:
- name: Install tools
ansible.builtin.include_tasks:
file: tasks/install-tools.yml
- name: Install AWS CLI v2
ansible.builtin.include_tasks:
file: tasks/awscli.yml
- name: Install Go
ansible.builtin.include_tasks:
file: tasks/go.yml
# ignore_errors: true
- name: Install Terraform
ansible.builtin.include_tasks:
file: tasks/terraform.yml
- name: Install NodeJS
ansible.builtin.include_tasks:
file: tasks/nodejs.yml
# - name: Install brave
# ansible.builtin.include_tasks:
# file: tasks/brave.yml
# NOT TESTED
- name: Install signal
ansible.builtin.include_tasks:
file: tasks/signal.yml
- name: Install spotify
ansible.builtin.include_tasks:
file: tasks/spotify.yml
- name: Install flatpak apps
ansible.builtin.include_tasks:
file: tasks/flathub.yml
- name: Configure Git
ansible.builtin.include_tasks:
file: tasks/git.yml
- name: Configure SSH for GitHub
ansible.builtin.include_tasks:
file: tasks/ssh.yml
- name: Print SSH key
ansible.builtin.debug:
msg:
- "{{ ssh_key_pub }}"
- "Add the SSH public key to GitHub & reload your terminal to use the installed tools."
become: false