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

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
  tags: tag1
  skip_tags: tag2

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
  tags: tag1
  skip_tags: tag2

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.

Source Distribution

mistral-ansible-actions-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for mistral-ansible-actions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 114476e727236c3fa2f858f1ab08f645f2a1a13dc7755bc841079a2ebb4ce5cc
MD5 f9b4db7cfd6a44008a061d68fbc87671
BLAKE2b-256 ec413becfc1e04ad716d4ebbc42bab3b9a7fcbdce1def32ac1a26ce3cccabf9b

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