Skip to content

Commit

Permalink
add rustup and rust version to provision script (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck authored May 15, 2024
1 parent 3d3b5f7 commit 7547d6b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ansible/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
become: yes
when: python_installed.rc != 0

- name: Check if rust toolchain is installed
command: rustup --version
register: rustup_installed
failed_when: false
changed_when: false

- name: Install Rustup
shell: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
args:
executable: /bin/bash
when: rustup_installed.rc != 0

- name: Update Rust to 1.77
command: rustup update 1.77.0

- name: Check if Git is installed
command: git --version
register: git_installed
Expand Down

0 comments on commit 7547d6b

Please sign in to comment.