-
Notifications
You must be signed in to change notification settings - Fork 8
/
playbook.yml
74 lines (62 loc) · 1.39 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
73
74
---
- hosts: all
connection: local
vars_files:
- vars.yml
pre_tasks:
- name: "Update apt cache if needed."
apt:
update_cache: yes
cache_valid_time: 3600
become: true
- name: "Install aptitude - preferred for ansible"
apt:
state: latest
name:
- aptitude
become: true
- name: "Update all packages to the latest version"
apt:
upgrade: dist
become: true
tasks:
- include_tasks: tasks/locale.yml
- name: "Install apt cmd line apps"
apt:
state: latest
name:
- awscli
- dos2unix
- ffmpeg
- gnupg
- golang
- graphviz
- jq
- libsqlite3-dev
- neofetch
- net-tools
- nmap
- silversearcher-ag
- tree
- unzip
- zip
become: true
- include_tasks: tasks/yarn.yml
when: install_yarn
- include_tasks: tasks/tfenv.yml
when: install_tfenv
- include_tasks: tasks/aws-vault.yml
when: install_aws_vault
- include_tasks: tasks/rbenv.yml
when: install_rbenv
post_tasks:
- name: "apt autoclean && autoremove"
apt:
autoclean: yes
autoremove: yes
become: true
roles:
- role: stephdewit.nvm
nvm_version: 0.40.0
nvm_node_version: 20.17.0
become: false