Skip to content

Can workflows be used also to generate images and sound from OpenAI models #328

Answered by thehunmonkgroup
kiil asked this question in Q&A
Discussion options

You must be logged in to vote

There is not currently specific integration with non-text generations, however, the beauty of Ansible is that it's quite easy to add your own if you so desire. Possible approaches off the top of my head:

  1. Call a custom Python script as a playbook task
  2. Write a custom Ansible module

Below is some boilerplate for approach number one that GPT-4 whipped up, which shows how to invoke a custom script with an argument, and how to construct the script:

Ansible Playbook:

---
- name: Call Python script with a customizable argument
  hosts: localhost
  vars:
    script_path: "/path/to/your/script.py"
    argument: "example_argument"

  tasks:
    - name: Execute Python script with an argument
      c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kiil
Comment options

Answer selected by kiil
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants