mirror of https://github.com/ansible/ansible.git
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.pull/69071/head
parent
cb389f6c31
commit
af44bd4ddd
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Using --start-at-task would fail when it attempted to skip over tasks with no name.
|
||||
@ -0,0 +1 @@
|
||||
shippable/posix/group4
|
||||
@ -0,0 +1,10 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name:
|
||||
debug:
|
||||
msg: foo
|
||||
- name: "task 2"
|
||||
debug:
|
||||
msg: bar
|
||||
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
ansible-playbook playbook.yml --start-at-task 'task 2' "$@"
|
||||
Loading…
Reference in New Issue