Skip to main content

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.

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

Simple task example:

task:
  action: ansible.playbook
  input:
    playbook: path/to/playbook.yaml

Optionally the directory can be provided if you want to execute the ansible-playbook command from a specific location:

task:
  action: ansible.playbook
  input:
    playbook: playbook.yaml
    directory: path/to

Plans/Ideas

  • “directory” should probably be renamed to “cwd” or something
  • We only support the ansible-playbook command, others should be added.
  • We only support the very minimum options for the ansible-playbook command, more should be exposed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mistral-ansible-actions, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mistral-ansible-actions-0.0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page