Loading...

Watch: Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation

Exploring the Power of OpenAI’s ChatGPT in Revolutionizing Ansible Coding: Advancing Automation to the Next Level

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

![Challenge 1](/articles/openai_chatgpt_q1.jpg)

Score: Good

Challenge 2

  • Configure a Windows Host for Ansible - Ansible winrm

![Challenge 2](/articles/openai_chatgpt_q2.jpg)

Score: Bad

Challenge 3

  • Using Date, Time, and Timestamp in Ansible Playbook - Ansible Tip and Tricks

![Challenge 3](/articles/openai_chatgpt_q3.jpg)

Score: Good

Challenge 4

  • Change user password - Ansible module user

![Challenge 4](/articles/openai_chatgpt_q4.jpg)

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.

Read the full tutorial: Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation