diff options
author | Zuul <zuul@review.opendev.org> | 2020-07-21 20:52:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-07-21 20:52:48 +0000 |
commit | 713b533d42f0d6e8112be4fd7c925ce0e6128a0e (patch) | |
tree | d4f0af82afd75955b56285d70d92e1411142ccf7 /tests/fixtures/config/remote-action-modules/git/org_project | |
parent | c02f88192e871a2907a58704527db31a9bbad4e9 (diff) | |
parent | 49fe527edb2c27f67c074be72e3fb6d665400de7 (diff) | |
download | zuul-713b533d42f0d6e8112be4fd7c925ce0e6128a0e.tar.gz |
Merge "Block localhost shell tasks in untrusted playbooks" into stable/3.x
Diffstat (limited to 'tests/fixtures/config/remote-action-modules/git/org_project')
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-delegate.yaml b/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-delegate.yaml new file mode 100644 index 000000000..7cb81e3b7 --- /dev/null +++ b/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-delegate.yaml @@ -0,0 +1,12 @@ +- hosts: all + tasks: + - name: Normal shell + delegate_to: localhost + shell: echo 123 + + - name: Shell with executable + delegate_to: localhost + shell: | + echo 123 + args: + executable: /bin/bash diff --git a/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-localhost.yaml b/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-localhost.yaml new file mode 100644 index 000000000..35f7253f1 --- /dev/null +++ b/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/shell-localhost.yaml @@ -0,0 +1,10 @@ +- hosts: localhost + tasks: + - name: Normal shell + shell: echo 123 + + - name: Shell with executable + shell: | + echo 123 + args: + executable: /bin/bash |