chore: clear remaining deprecations after the ansible_facts migration #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/deprecation-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the
inject_facts_as_vars = Falsework. A sweep withdeprecation warnings enabled found no remaining runtime deprecations;
these three commits clear what was left.
firewall_apply_openis already cast with| boolwhere it is defined,and
firewall_apply_keepis a boolean expression, so filtering eitheragain changed nothing. Under ansible-lint the nested task vars render as
raw strings, and the extra filter printed the
boolcoerciondeprecation that ansible-core 2.23 turns into an error. The rendered
firewall rules are unchanged, so no host sees a different ruleset.
The declared floor of 2.15 is long out of support and was never tested.
2.21 is the ansible-core pinned in
requirements-dev.txt.The link pointed at the ansible 2.6 documentation.
Verification
make VENV=.venv-jail checkpasses withANSIBLE_DEPRECATION_WARNINGS=1and prints no deprecation warnings (it printed two before this change).
make test(molecule) andmake verify, because podman wasunavailable in that environment.
Left out on purpose
.yamllintdoesn't match what ansible-lint expects(
octal-values.forbid-implicit-octal,comments.min-spaces-from-content).