ChatGPT, produced by OpenAI, is an excellent tool for artificial intelligence with a Chat-like interface. We can ask ChatGPT any questions. What is unexpected is that the results are quite brilliant when we ask how to write code, too. Since the OpenAI ChatGPT release announcement on 30th November 2022, the ChatGPT tool has been a great hype on the internet. People around the globe tested in the most variant situations. It’s impressive the application of the GPT (Generative Pre-trained Transformer) 3.5 large language model with a massive amount of data.

It’s a great tool to speed up the DevOps and SysOps workflow. Long story short: it creates a skeleton that we can use as a base for laboratory tests, but nothing is ready for production. It’s impressive because it could be improved and probably we could obtain a great result in a few years. After a few tries, I agree with the opinions of Craig Brandt in the “Ansible and ChatGPT: Putting it to the test” article on the Ansible blog.

The good

ChatGPT can understand our request and process it in a way to generate some code. The output code respects the Ansible syntax. It gives us an idea of how automation could be executed in real life.

The bad

The produced code it’s far from production ready. Some outputs are definitely better quality than others; it depends on the use case. We can use the Ansible-Lint tool to analyze for syntax checks and test when the Ansible best practices are fulfilled.

Join 50+ hours of courses in our exclusive community

Project Wisdom

Project Wisdom announced at AnsibleFest 2022, is a close collaboration between Ansible and IBM Research to create an Ansible AI. The quality will be better because of the specificity of the project. I look forward to testing on my own.

Conclusion

ChatGPT is a great tool to speed up DevOps productivity, but the resulting quality might vary significantly. It’s a great way to obtain a laboratory test draft but not a production-ready code.

Subscribe to the YouTube channel, Medium, and Website, X (formerly Twitter) to not miss the next episode of the Ansible Pilot.

Academy

Learn the Ansible automation technology with some real-life examples in my Udemy 300+ Lessons Video Course.

BUY the Complete Udemy 300+ Lessons Video Course

My book Ansible By Examples: 200+ Automation Examples For Linux and Windows System Administrator and DevOps

BUY the Complete PDF BOOK to easily Copy and Paste the 250+ Ansible code

Want to keep this project going? Please donate

Patreon Buy me a Pizza