https://github.com/sshnaidm/ansible-gpt
OpenAI (GPT) additions for Ansible
https://github.com/sshnaidm/ansible-gpt
ai-development-tools ansible chatgpt devops gpt openai python
Last synced: 3 months ago
JSON representation
OpenAI (GPT) additions for Ansible
- Host: GitHub
- URL: https://github.com/sshnaidm/ansible-gpt
- Owner: sshnaidm
- License: gpl-3.0
- Created: 2023-04-04T11:36:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T13:39:26.000Z (over 2 years ago)
- Last Synced: 2025-03-23T20:36:49.659Z (about 1 year ago)
- Topics: ai-development-tools, ansible, chatgpt, devops, gpt, openai, python
- Language: Python
- Homepage:
- Size: 7.71 MB
- Stars: 29
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Ansible GPT
OpenAI (GPT) additions for Ansible
## Callback plugin that analyzes the running playbook and tasks
Usage (more in [article](https://github.com/sshnaidm/ansible-gpt/blob/master/article.md)):
```bash
pip install ansible-core openai
ansible-galaxy collection install sshnaidm.openai
export OPENAI_API_KEY=
ANSIBLE_CALLBACKS_ENABLED=sshnaidm.openai.openai ansible-playbook playbook.yml
```
## Ansible-lint rule that checks tasks and playbooks and suggests improvements
Usage (more in [article](https://github.com/sshnaidm/ansible-gpt/blob/master/article-lint.md)):
```bash
pip install openai ansible-lint
export OPENAI_API_KEY=
git clone https://github.com/sshnaidm/ansible-gpt.git
ansible-lint -v -r ansible-gpt/ansible_lint/rules/ --project-dir /path/to/my_project /path/to/my_project/playbook.yml
```