A Mistral action to execute Ansible playbooks
Project description
Mistral Actions for Ansible
Note: This project is experimental and in infancy. It might work for you.
However, given interested users and the time I’d like to make it stable and useful - so input and help is very welcome!
Install
The actions can be installed via pip, then we need to tell Mistral about them and restart Mistral:
pip install mistral-ansible-actions; sudo mistral-db-manage populate; systemctrl restart openstack-mistral*;
Usage
Calling ansible:
action: ansible input: hosts: '*' module: copy module_args: 'src=file.txt dest=/root/file.txt' remote_user: stack become: true become_user: root
Call ansible playbook:
action: ansible-playbook input: limit_hosts: overcloud-controller-0 playbook: /home/stack/ansible/my_playbook.yaml remote_user: stack become: true become_user: root
Plans/Ideas
We only support a subset of args ansible and ansible-playbook commands, more should be exposed. Maybe we can automatically add them all somehow?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mistral-ansible-actions-0.1.2.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 547026fc98491c131f6dcef6945309026e1ce8cad1f9d107007c8de62ebc08b3 |
|
MD5 | 9cec9f46ef7af26097a42820e74a1ff2 |
|
BLAKE2b-256 | 1f0bc7ca8b6eafab930042bcb9336575c5b303a1a9df04e1a17bec9a01fc3bf8 |
Close
Hashes for mistral_ansible_actions-0.1.2.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867adc3b06c3154a77fbb640128c675edecc8cd01338de8cef098b1cc283a07a |
|
MD5 | d6d24058ad38afc0095503f2d835bd2b |
|
BLAKE2b-256 | 776e655f6d40c1f9e037296f51d4eacfaa87cb2894cac008b84efe08f675a976 |