diff options
author | David Shrewsbury <Shrews@users.noreply.github.com> | 2020-04-21 09:39:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 09:39:17 +0200 |
commit | af44bd4ddded532af522d84cbc4cb878aca56f13 (patch) | |
tree | 45838d1424582cfbb08d5d6d69ad97821b364558 /test | |
parent | Prevent rewriting nested Block's data in filter_tagged_tasks (#68337) (diff) | |
download | ansible-af44bd4ddded532af522d84cbc4cb878aca56f13.tar.xz ansible-af44bd4ddded532af522d84cbc4cb878aca56f13.zip |
Fix --start-at-task when skipping tasks with no name (#68951)
Using --start-at-task on a playbook with tasks with no name would fail
if those unnamed tasks were encountered before the targetted start task.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/play_iterator/aliases | 1 | ||||
-rw-r--r-- | test/integration/targets/play_iterator/playbook.yml | 10 | ||||
-rwxr-xr-x | test/integration/targets/play_iterator/runme.sh | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/play_iterator/aliases b/test/integration/targets/play_iterator/aliases new file mode 100644 index 0000000000..3005e4b26d --- /dev/null +++ b/test/integration/targets/play_iterator/aliases @@ -0,0 +1 @@ +shippable/posix/group4 diff --git a/test/integration/targets/play_iterator/playbook.yml b/test/integration/targets/play_iterator/playbook.yml new file mode 100644 index 0000000000..76100c6089 --- /dev/null +++ b/test/integration/targets/play_iterator/playbook.yml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + gather_facts: false + tasks: + - name: + debug: + msg: foo + - name: "task 2" + debug: + msg: bar diff --git a/test/integration/targets/play_iterator/runme.sh b/test/integration/targets/play_iterator/runme.sh new file mode 100755 index 0000000000..9f30d9e7a2 --- /dev/null +++ b/test/integration/targets/play_iterator/runme.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -eux + +ansible-playbook playbook.yml --start-at-task 'task 2' "$@" |