Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 6d7f53c

Browse files
committed
test: avoid using bash
1 parent 219912a commit 6d7f53c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/roles/ensure-ansible/molecule/default/playbook.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,18 @@
4444
# PIP_NO_BUILD_ISOLATION workaround for older pips with partial pep514
4545
- name: Test install to user without extras
4646
shell: |
47-
set -euox pipefail
47+
set -eux
4848
export PIP_NO_BUILD_ISOLATION=false
4949
{{ ansible_python.executable }} -m pip install --user 'setuptools>=40.0'
5050
{{ ansible_python.executable }} -m pip install --user {{ item.dest }}
5151
{{ ansible_python.executable }} -m molecule --version
5252
{{ ansible_python.executable }} -c 'import docker' && exit 1 || echo 'passed, docker should not be installed'
5353
{# tests that we can install docker extra #}
54-
args:
55-
# ubuntu defaults to /bin/sh which chokes on pipefail
56-
executable: /bin/bash
5754
with_items: "{{ result.results }}"
5855

5956
- name: Test install to user with docker extra
6057
shell: |
61-
set -euox pipefail
58+
set -eux
6259
{{ ansible_python.executable }} -m pip install --user echo '{{ item.dest }}[docker]'
6360
{{ ansible_python.executable }} -c 'import docker'
64-
args:
65-
# ubuntu defaults to /bin/sh which chokes on pipefail
66-
executable: /bin/bash
6761
with_items: "{{ result.results }}"

0 commit comments

Comments
 (0)