From 4b6cd49748baeb9da2ca1846ab3c7dca90bd07f4 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 30 Nov 2020 22:21:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20~/.local/bin=20add=20?= =?UTF-8?q?task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/folders.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/folders.yml b/tasks/folders.yml index 0cd6071..0880cfd 100644 --- a/tasks/folders.yml +++ b/tasks/folders.yml @@ -11,3 +11,10 @@ path: "{{ simulationbase_scratch_folder }}" state: directory mode: 0777 + +- name: Add ~/.local/bin to the PATH # for pip install --user + become: true + become_user: "{{ simulationbase_vm_user }}" + lineinfile: + path: "${HOME}/.bashrc" + line: "export PATH=$PATH:${HOME}/.local/bin"