From 7547d6be6530d8905adf45494de76b77c4b3c256 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 15 May 2024 12:49:41 -0700 Subject: [PATCH] add rustup and rust version to provision script (#24) --- ansible/provision.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ansible/provision.yaml b/ansible/provision.yaml index f0262f2..7f0c214 100644 --- a/ansible/provision.yaml +++ b/ansible/provision.yaml @@ -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