diff --git a/src/playbooks/roles/javascript/molecule/default/verify.yml b/src/playbooks/roles/javascript/molecule/default/verify.yml index 88b73ca..a8bbebe 100644 --- a/src/playbooks/roles/javascript/molecule/default/verify.yml +++ b/src/playbooks/roles/javascript/molecule/default/verify.yml @@ -14,7 +14,7 @@ - result.stdout == "molecule" fail_msg: "actual result is {{ result.stdout }}" - name: test command existence - ansible.builtin.command: bash -c ". ~/.bashrc.d/javascript.bashrc && {{ item }}" + ansible.builtin.command: bash -cl "{{ item }}" changed_when: False with_items: - type volta diff --git a/src/playbooks/roles/rust/molecule/default/verify.yml b/src/playbooks/roles/rust/molecule/default/verify.yml index 3769a76..d12b6b6 100644 --- a/src/playbooks/roles/rust/molecule/default/verify.yml +++ b/src/playbooks/roles/rust/molecule/default/verify.yml @@ -13,7 +13,7 @@ that: - result.stdout == "molecule" - name: test command existence - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && type {{ item }}" + ansible.builtin.command: bash -cl "type {{ item }}" register: result changed_when: False with_items: diff --git a/src/playbooks/roles/rust/tasks/csview.yml b/src/playbooks/roles/rust/tasks/csview.yml index 4fa64af..3074a2e 100644 --- a/src/playbooks/roles/rust/tasks/csview.yml +++ b/src/playbooks/roles/rust/tasks/csview.yml @@ -1,6 +1,6 @@ --- - name: Check whether already installed csview - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && which csview" + ansible.builtin.command: bash -cl "which csview" register: checked_result changed_when: False failed_when: checked_result.rc not in [0, 1] @@ -15,4 +15,4 @@ - gcc - name: Install csview # noqa no-changed-when - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && cargo install csview" + ansible.builtin.command: bash -cl "cargo install csview" diff --git a/src/playbooks/roles/rust/tasks/main.yml b/src/playbooks/roles/rust/tasks/main.yml index 6985e49..4e49604 100644 --- a/src/playbooks/roles/rust/tasks/main.yml +++ b/src/playbooks/roles/rust/tasks/main.yml @@ -12,7 +12,7 @@ mode: 0755 - name: Check whether already installed rustup - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && which rustup" + ansible.builtin.command: bash -cl "which rustup" register: checked_result changed_when: False failed_when: checked_result.rc not in [0, 1] diff --git a/src/playbooks/roles/rust/tasks/riff.yml b/src/playbooks/roles/rust/tasks/riff.yml index 028e098..ddde660 100644 --- a/src/playbooks/roles/rust/tasks/riff.yml +++ b/src/playbooks/roles/rust/tasks/riff.yml @@ -1,7 +1,7 @@ --- - name: Check whether already installed riff - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && which riff" + ansible.builtin.command: bash -cl "which riff" register: checked_result changed_when: False failed_when: checked_result.rc not in [0, 1] @@ -16,4 +16,4 @@ - gcc - name: Install riff # noqa no-changed-when - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && cargo install riffdiff" + ansible.builtin.command: bash -cl "cargo install riffdiff" diff --git a/src/playbooks/roles/rust/tasks/xsv.yml b/src/playbooks/roles/rust/tasks/xsv.yml index faaf65e..2904c08 100644 --- a/src/playbooks/roles/rust/tasks/xsv.yml +++ b/src/playbooks/roles/rust/tasks/xsv.yml @@ -1,6 +1,6 @@ --- - name: Check whether already installed xsv - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && which xsv" + ansible.builtin.command: bash -cl "which xsv" register: checked_result changed_when: False failed_when: checked_result.rc not in [0, 1] @@ -15,4 +15,4 @@ - gcc - name: Install xsv # noqa no-changed-when - ansible.builtin.command: bash -c ". ~/.bashrc.d/rust.bashrc && cargo install xsv" + ansible.builtin.command: bash -cl "cargo install xsv"