You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is reported problem for playbook where value should an enum constant,
but actually is a template expression.
Reproduce steps
Let's have playbook.yml with this tasks:
- name: mysql - configurebecome: yescopy:
dest: /etc/mysql/mysql.conf.d/o_custom.cnfcontent: | [mysqld] lower_case_table_names=1 default-storage-engine=InnoDBregister: mysql_config
- name: mysql - start/restartbecome: yesservice:
name: mysqlstate: '{{"restarted" if mysql_config.changed else "started"}}'
At last line is reported problem because value should be one of "reloaded", "restarted", "started", "stopped",
but there is a template which should resolve the valid value.
Expected Results
No problem reporting. Just skip this kind of validation when template is detected.
Actual Results
Value is not accepted. Valid values: "reloaded", "restarted", "started", "stopped".
The text was updated successfully, but these errors were encountered:
Environment
Summary
There is reported problem for playbook where value should an enum constant,
but actually is a template expression.
Reproduce steps
Let's have playbook.yml with this tasks:
At last line is reported problem because value should be one of "reloaded", "restarted", "started", "stopped",
but there is a template which should resolve the valid value.
Expected Results
No problem reporting. Just skip this kind of validation when template is detected.
Actual Results
Value is not accepted. Valid values: "reloaded", "restarted", "started", "stopped".
The text was updated successfully, but these errors were encountered: