From 1bc03cffcc79e97d9ad42f64c6fa2eda318c3740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 4 Jan 2022 18:13:40 +0100 Subject: [PATCH] Fix alacritty build --- playbook.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index de13286..0b42433 100644 --- a/playbook.yml +++ b/playbook.yml @@ -609,12 +609,16 @@ tempfile: state: directory register: alacritty_build_tempdir + become: true + become_user: rust_build when: not alacritty_binary.stat.exists - name: build alacritty - command: cargo install alacritty --root ./out + shell: . ~/.cargo/env && rustup run stable cargo install alacritty --root ./out args: chdir: "{{ alacritty_build_tempdir.path }}" + become: true + become_user: rust_build when: not alacritty_binary.stat.exists - name: install alacritty @@ -626,6 +630,8 @@ file: path: "{{ alacritty_build_tempdir.path }}" state: absent + become: true + become_user: rust_build when: not alacritty_binary.stat.exists when: distro == 'ubuntu'