mirror of https://github.com/ansible/ansible.git
* don't ignore templated _raw_params that k=v parser failed to parse (#79913) fixes #79862 * backport test changespull/80028/head
parent
344230fca5
commit
d5fd83265d
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- TaskExecutor - don't ignore templated _raw_params that k=v parser failed to parse (https://github.com/ansible/ansible/issues/79862)
|
@ -0,0 +1,19 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# make sure tasks with an undefined variable in the name are gracefully handled
|
||||
- name: "Task name with undefined variable: {{ not_defined }}"
|
||||
debug:
|
||||
msg: Hello
|
||||
|
||||
- name: ensure malformed raw_params on arbitrary actions are not ignored
|
||||
debug:
|
||||
garbage {{"with a template"}}
|
||||
ignore_errors: true
|
||||
register: bad_templated_raw_param
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- bad_templated_raw_param is failed
|
||||
- |
|
||||
"invalid or malformed argument: 'garbage with a template'" in bad_templated_raw_param.msg
|
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ansible-playbook playbook.yml "$@"
|
||||
|
@ -1,4 +0,0 @@
|
||||
# make sure tasks with an undefined variable in the name are gracefully handled
|
||||
- name: "Task name with undefined variable: {{ not_defined }}"
|
||||
debug:
|
||||
msg: Hello
|
Loading…
Reference in New Issue