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!).
Were there any plans to introduce an API to Suitable that lets you execute playbooks directly?
E.g.
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!).