mirror of https://github.com/ansible/ansible.git
deprecate invalid variable names in inventory (#85377)
* deprecate invalid variable names in inventory
* was previously a hard error for `Host`
* added missing check to `Group`
* swapped blanket Python keyword prohibition with Jinja singleton and `not` check
Co-authored-by: Matt Clay <matt@mystile.com>
* fix invalid variable name test
---------
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 3c52b14c9e)
pull/85383/head
parent
223546bf76
commit
0ce6b45db2
@ -0,0 +1,7 @@
|
||||
bugfixes:
|
||||
- variables - Added Jinja scalar singletons (``true``, ``false``, ``none``) to invalid Ansible variable name detection.
|
||||
Previously, variables with these names could be assigned without error, but could not be resolved.
|
||||
minor_changes:
|
||||
- variables - Removed restriction on usage of most Python keywords as Ansible variable names.
|
||||
deprecated_features:
|
||||
- inventory plugins - Setting invalid Ansible variable names in inventory plugins is deprecated.
|
||||
Loading…
Reference in New Issue