Docs: Define general code rules #121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
As identified in #97, we should define some standards.
This can include, but is not limited to:
Additionally:
no_log=true
[1] on specific tasks or better!unsafe
[2] on those varsregarding the last point i'd like to move away from 'example' vars and only set variables that would actually be usable.
This would lead to playbooks failing (this already happens) with unset variable errors. Which is IMO better than currently where playbooks/roles might run through but leave an unusable state.
If we would like to we could also make use of the argument_spec [3] and validate through that. But that might be quite a lot of work for a not so big upside.
[1] https://docs.ansible.com/ansible/latest/reference_appendices/logging.html#protecting-sensitive-data-with-no-log
[2] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_advanced_syntax.html#unsafe-or-raw-strings
[3] https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec