-
Notifications
You must be signed in to change notification settings - Fork 40
/
deps.yaml
52 lines (49 loc) · 1021 Bytes
/
deps.yaml
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
- name: Install a list of packages
become: true
become_user: root
apt:
update_cache: yes
pkg:
- build-essential
- pkg-config
- libudev-dev
- cmake
- libclang-dev
- libssl-dev
- gparted
- nload
- python3-pip
- net-tools
- logind
- curl
- git
- chrony
- htop
- acl
- name: check if cargo is installed
become: true
become_user: solana
become_method: sudo
shell: test -f /home/solana/.cargo/env && source /home/solana/.cargo/env && command -v cargo
args:
executable: /bin/bash
register: cargo_exists
ignore_errors: yes
- name: Download Installer
when: cargo_exists is failed
become: true
become_user: solana
become_method: sudo
get_url:
url: https://sh.rustup.rs
dest: /tmp/sh.rustup.rs
mode: '0755'
force: 'yes'
- name: install rust/cargo
become: true
become_user: solana
become_method: sudo
when: cargo_exists is failed
shell: /tmp/sh.rustup.rs -y
args:
executable: /bin/bash