2022-10-20 04:57:05 +00:00
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- rust-nightly
|
|
|
|
state: present
|
2023-05-02 00:04:59 +00:00
|
|
|
|
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
|
|
|
- "/opt/rust-analyzer"
|
|
|
|
|
|
|
|
- name: Clone rust-analyzer Source
|
|
|
|
git:
|
|
|
|
repo: "https://github.com/rust-lang/rust-analyzer.git"
|
|
|
|
dest: /opt/rust-analyzer
|
2024-02-11 19:59:55 +00:00
|
|
|
version: "2024-04-01"
|
2023-05-02 00:04:59 +00:00
|
|
|
force: true
|
|
|
|
diff: false
|
|
|
|
|
|
|
|
- name: Build rust-analyzer
|
|
|
|
command: "cargo build --release"
|
|
|
|
args:
|
|
|
|
creates: "/opt/rust-analyzer/target/release/rust-analyzer"
|
|
|
|
chdir: /opt/rust-analyzer
|