AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.
Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation — Video Tutorial
Exploring the Power of OpenAI’s ChatGPT in Revolutionizing Ansible Coding: Advancing Automation to the Next Level
What You'll Learn
- OpenAI ChatGPT
- Links
- Four Challenges
- Challenge 1
- Challenge 2
- Challenge 3
- Challenge 4
- Conclusion
- Related Articles
Full Tutorial Content
OpenAI ChatGPT
ChatGPT is a revolutionary artificial intelligence in that we can interact in a conversational way. Version 3 was launched in November 2022, and ChatGPT in March 2023. Its closest competitor is Google Bard.
Links
- [Introducing ChatGPT](https://openai.com/blog/chatgpt)
- [GPT-4 is OpenAI’s most advanced system, producing safer and more useful responses](https://openai.com/product/gpt-4)
Four Challenges
I decided to judge the quality of the AI using the following four challenges:
1. How to Pass Variables to Ansible Playbook in the command line? - Ansible extra variables
2. Configure a Windows Host for Ansible - Ansible winrm
3. Using Date, Time, and Timestamp in Ansible Playbook - Ansible Tip and Tricks
4. Change user password - Ansible module user
Challenge 1
- How to Pass Variables to Ansible Playbook in the command line? - Ansible extra variables

Score: Good
Challenge 2
- Configure a Windows Host for Ansible - Ansible winrm

Score: Bad
Challenge 3
- Using Date, Time, and Timestamp in Ansible Playbook - Ansible Tip and Tricks

Score: Good
Challenge 4
- Change user password - Ansible module user

Score: Good
Conclusion
ChatGPT is a great companion that speeds up prototyping and boosts our productivity. I'm impressed by the quality of the result. They appear good-looking and well-organized. However, at the moment, the outcome requires some manual rework before being able actually to use in our laboratory. The challenges saw that it is excellent for minor problems but lacks for those requiring more context interpretation.
Related Articles
- [the Ansible Windows reference](/articles/ansible-windows-management-complete-guide)
About This Tutorial
- Author: Luca Berton
- Difficulty: Advanced
- Read time: 2 min
- Category: windows-automation
Read the full written article: Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation
Related Video Tutorials
- Bard-ing with Ansible: Streamlining Testing for Google's AI Writing Tool — Effortlessly Enhancing Productivity and Accuracy with Ansible for Bard, Google's Cutting-edge Writing AI
- Ansible ansible.builtin vs ansible.legacy: Collection Namespaces Explained — Understand ansible.builtin vs ansible.legacy namespaces. Learn when to use FQCN, how module resolution works, and migrate to fully qualified collection names.
- Ansible Multi-Line Strings: Literal (|) & Folded (>) Block Scalars Guide — How to break strings over multiple lines in Ansible YAML. Use literal block scalar (|) to preserve newlines and folded block scalar (>) to join lines.
- Ansible troubleshooting - VMware Unknown error while connecting to vCenter or ESXi — Let’s troubleshoot together the Ansible fatal error “Unknown error while connecting to vCenter or ESXi API, [Errno -2] Name or service not known” to find.
- Ansible troubleshooting - VMware certificate verify failed connecting to vCenter or ESXi — Learn how to resolve the "certificate verify failed" error in Ansible when connecting to VMware vCenter. Follow our step-by-step guide for a smooth fix.
- Top AI Models: ChatGPT, Claude, Gemini, LLaMA in Communication — Discover how ChatGPT, Claude, Gemini, and LLaMA are revolutionizing communication, content creation, and research with their advanced AI capabilities.