Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
km45 committed Jan 29, 2025
1 parent 290d3ed commit 8217393
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/playbooks/roles/javascript/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/playbooks/roles/rust/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/playbooks/roles/rust/tasks/csview.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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"
2 changes: 1 addition & 1 deletion src/playbooks/roles/rust/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions src/playbooks/roles/rust/tasks/riff.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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"
4 changes: 2 additions & 2 deletions src/playbooks/roles/rust/tasks/xsv.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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"

0 comments on commit 8217393

Please sign in to comment.