From 36861ec8f7f4b269e083ebbc12c321e1d84f6d70 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sun, 12 Jun 2022 12:58:34 +0200 Subject: [PATCH] Use shell chdir instead of cd --- roles/i3/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/i3/tasks/main.yml b/roles/i3/tasks/main.yml index 33d3b8e..daa8a2d 100644 --- a/roles/i3/tasks/main.yml +++ b/roles/i3/tasks/main.yml @@ -116,8 +116,12 @@ clone: true update: false - name: Build - shell: cd ~/.git_clones/i3blocks && ./autogen.sh && ./configure && make + shell: + cmd: ./autogen.sh && ./configure && make + chdir: ~/.git_clones/i3blocks - name: Install become: true - shell: cd {{ ansible_facts.user_dir }}/.git_clones/i3blocks && make install + shell: + cmd: make install + chdir: "{{ ansible_facts.user_dir }}/.git_clones/i3blocks" when: ansible_facts['distribution'] == 'Debian'