diff --git a/config/ansible/tasks/global/global.yml b/config/ansible/tasks/global/global.yml index ecdffdb..c0837c5 100644 --- a/config/ansible/tasks/global/global.yml +++ b/config/ansible/tasks/global/global.yml @@ -12,10 +12,6 @@ become: true when: "'microsoft-standard-WSL2' not in ansible_kernel" -- name: Include Rust tasks - ansible.builtin.import_tasks: tasks/global/rust.yml - become: true - - name: Include Docker tasks ansible.builtin.import_tasks: tasks/global/docker.yml become: true diff --git a/config/ansible/tasks/global/rust.yml b/config/ansible/tasks/global/rust.yml deleted file mode 100644 index caeaa89..0000000 --- a/config/ansible/tasks/global/rust.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: Check if Rust is installed - ansible.builtin.shell: source $HOME/.cargo/env && rustc --version - register: rust_check - changed_when: false - failed_when: false - args: - executable: /bin/bash - -- name: Download Rust installation script - ansible.builtin.get_url: - url: https://sh.rustup.rs - dest: /tmp/rustup.sh - mode: "0755" - when: rust_check.rc != 0 - -- name: Install Rust and Cargo - ansible.builtin.shell: | - set -o pipefail - /tmp/rustup.sh -y - args: - executable: /bin/bash - creates: ~/.cargo/bin/rustc - when: rust_check.rc != 0