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.

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


Download files

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

Source Distribution

mistral-ansible-actions-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file mistral-ansible-actions-0.2.1.tar.gz.

File metadata

File hashes

Hashes for mistral-ansible-actions-0.2.1.tar.gz
Algorithm Hash digest
SHA256 38eaf532d985cfb9373249c5bfd15317df15c21337dd9b574fc82c343f08383c
MD5 755d0097ce091ee1d77dfa32c8be91c0
BLAKE2b-256 9ac2694ccadfa8068dd9a36a115a7d0435b2bffdfe695b96a19b89bcc5ccb14b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page