Skip to content

Commit 2f194ce

Browse files
committed
Revert ansible.builtin.command to ansible.builtin.shell due to missed comment "need login shell for module command" and mask ansible-lint error
1 parent c221045 commit 2f194ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/roles/hpctests/tasks/pingpong.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
- name: Run pingpong
1515
block:
16-
- name: Submit jobscript # noqa: no-changed-when
17-
ansible.builtin.command: bash -l -c 'sbatch --wait pingpong.sh'
16+
- name: Submit jobscript # noqa: command-instead-of-shell no-changed-when
17+
ansible.builtin.shell: bash -l -c 'sbatch --wait pingpong.sh' # need login shell for module command
1818
args:
1919
chdir: "{{ hpctests_rootdir }}/pingpong"
2020
register: hpctests_pingpong_sbatch

0 commit comments

Comments
 (0)