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
File details
Details for the file mistral-ansible-actions-0.2.2.tar.gz
.
File metadata
- Download URL: mistral-ansible-actions-0.2.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dba8a723e22a26c688d2c698be79080fc328b57c4743916eb35ceac95480dea |
|
MD5 | 5276ffb7f0d9335297f4f2801b1b3a5f |
|
BLAKE2b-256 | 2ed9c743019c46ff14ebf8d767b8b5b5d6886c469533681cc0c2d38397b2d2e5 |