Skip to content

Directly execute playbooks #21

Description

@samatjain

Were there any plans to introduce an API to Suitable that lets you execute playbooks directly?

E.g.

ansible_playbook = '''
- hosts: all
  tasks:
  - ping:
'''
Api(...).execute_raw_playbook(ansible_playbook, format=YAML)

You could do this by writing the playbook to a file and using Api(..).include_task (I have not tried), but Suitable would really fit some use-cases I have (replacing a bunch of crufty Fabric scripts) if it had an API like this.

Edit: found #9 after opening this, oops! My issue with using the Ansible API directly is that it's explicitly NOT stable, and Suitable's API is (and much more elegant!).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    undecidedMight or might not be a good idea.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions