AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
and run the playbook in "check" mode from awx. the task fails to run
Expected results
that a task with check_mode: false runs when the play is run in "check mode". This is what already occurs when the cli is used, i.e. ansible-playboook my-playbook-name.yaml --check.
Actual results
skipping: [<truncated>] => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"cmd": [
"hostname"
],
"delta": null,
"end": null,
"invocation": {
"module_args": {
"_raw_params": "hostname",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"expand_argument_vars": true,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "Command would have run if not in check mode",
…
Please confirm the following
security@ansible.com
instead.)Bug Summary
when running a job template with job type
Playbook Check
, tasks withcheck_mode: false
do not run as intended when on the cli they do.AWX version
23.9.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
23.9.0
Operating system
k3s 1.29
Web browser
No response
Steps to reproduce
add the following task
and run the playbook in "check" mode from awx. the task fails to run
Expected results
that a task with
check_mode: false
runs when the play is run in "check mode". This is what already occurs when the cli is used, i.e.ansible-playboook my-playbook-name.yaml --check
.Actual results
Additional information
No response