Skip to content

Commit 3ebf895

Browse files
committed
Adapt rust playbook to new way of passing user
1 parent f98ccac commit 3ebf895

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

infra/ansible/rust.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
- name: Rust Setup
22
hosts: all
33
become: true
4-
vars:
5-
user: "{{ user }}"
64

75
pre_tasks:
86
- name: update repositories
97
apt: update_cache=yes
10-
become_user: root
8+
become: true
119
changed_when: False
1210
tasks:
1311
- name: check if cargo is installed
@@ -16,6 +14,7 @@
1614
ignore_errors: true
1715

1816
- name: Download Installer
17+
become_user: "{{ app_user }}"
1918
when: cargo_exists is failed
2019
get_url:
2120
url: https://sh.rustup.rs
@@ -28,6 +27,6 @@
2827
- name: install rust/cargo
2928
when: cargo_exists is failed
3029
shell: /tmp/sh.rustup.rs -y
31-
become_user: "{{ user }}"
30+
become_user: "{{ app_user }}"
3231
tags:
3332
- rust

0 commit comments

Comments
 (0)