Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/telekom-mms/ansible-bad-and-good-practices
A collection of good and bad Ansible code examples
https://github.com/telekom-mms/ansible-bad-and-good-practices
ansible best-practice hacktoberfest
Last synced: 5 days ago
JSON representation
A collection of good and bad Ansible code examples
- Host: GitHub
- URL: https://github.com/telekom-mms/ansible-bad-and-good-practices
- Owner: telekom-mms
- License: other
- Created: 2022-09-07T10:58:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:44:00.000Z (18 days ago)
- Last Synced: 2024-10-24T01:50:44.253Z (18 days ago)
- Topics: ansible, best-practice, hacktoberfest
- Homepage: https://telekom-mms.github.io/ansible-bad-and-good-practices/
- Size: 590 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ansible - Good and Bad Practices
A collection of good and bad Ansible code examples.
* [Name your tasks](docs/name_your_tasks.md)
* [Use Modules before run-commands](docs/use_modules_before_run_commands.md)
* [Use native yaml syntax](docs/use_native_yaml_syntax.md)
* [Use the copy-module or template-module instead of lineinfile-module](docs/use_copy_template_instead_of_lineinfile.md)
* [Avoid unintended side effects when running playbooks](docs/avoid_sideeffects.md)
* [Turn off gather_facts if not needed](docs/turn_off_gather_facts.md)
* [Prefix your variables](docs/prefix_your_variables.md)## Contributing
If you want to contribute you can create a merge request so other colleagues will discuss the code with you. Make sure to add both a good and a bad practice to your code example.
Make sure that:
- your code won't contain credentials
- you've commented the code why it is a good or bad practice
- your code can be easily run, so please add a full playbook if possible
- be open to discuss with your colleaguesIf you want to change, discuss or view the code - feel free to visit the repository: [https://github.com/telekom-mms/ansible-bad-and-good-practices](https://github.com/telekom-mms/ansible-bad-and-good-practices)