Skip to content

Directly execute playbooks #21

@samatjain

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!).

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