mirror of
https://github.com/transatoshi-mw/grinminer.net.git
synced 2025-10-06 22:02:48 +00:00
added playbooks
This commit is contained in:
31
ansible/compilers-rust.yml
Normal file
31
ansible/compilers-rust.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
- hosts: test
|
||||
remote_user: root
|
||||
tasks:
|
||||
|
||||
- name: Create user
|
||||
ansible.builtin.user:
|
||||
name: grin
|
||||
password: <SHA-512 HASH>
|
||||
|
||||
- name: Install shit to compile Rust programs
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- libssl-dev
|
||||
- build-essential
|
||||
- pkg-config
|
||||
- git
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
- name: Download rust installer
|
||||
get_url:
|
||||
url: https://sh.rustup.rs
|
||||
dest: /tmp/sh.rustup.rs
|
||||
mode: '0755'
|
||||
force: 'yes'
|
||||
|
||||
- name: Install rust/cargo
|
||||
shell: /tmp/sh.rustup.rs -y
|
||||
become: yes
|
||||
become_user: grin
|
||||
|
Reference in New Issue
Block a user