fix: remove Rust tasks and related configuration from global Ansible setup
This commit is contained in:
@@ -12,10 +12,6 @@
|
|||||||
become: true
|
become: true
|
||||||
when: "'microsoft-standard-WSL2' not in ansible_kernel"
|
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
|
- name: Include Docker tasks
|
||||||
ansible.builtin.import_tasks: tasks/global/docker.yml
|
ansible.builtin.import_tasks: tasks/global/docker.yml
|
||||||
become: true
|
become: true
|
||||||
|
@@ -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
|
|
Reference in New Issue
Block a user