Ansible: Difference between revisions

update best practices
No edit summary
Line 82: Line 82:


== Testing ==
== Testing ==
There is a spectrum of testing you can employ in your Ansible deployments<ref>https://www.youtube.com/live/FaXVZ60o8L8?si=gFoxE-ig5X0psuul&t=1244</ref>
{{#evu:https://www.youtube.com/watch?v=FaXVZ60o8L8&t=1244s
|alignment=right
}}
 
 
[[File:Ansible linting and testing spectrum.png|thumb|left|The spectrum of testing you can employ in your Ansible deployments]]
Jeff Geerling talks about the spectrum of testing you can employ in your Ansible deployments<ref>https://www.youtube.com/live/FaXVZ60o8L8?si=gFoxE-ig5X0psuul&t=1244</ref>
# <code>yamllint</code>
# <code>yamllint</code>
# <code>ansible-playbook --syntax-check</code>
# <code>ansible-playbook --syntax-check</code>