Skip to main content

Keyring integration and local execution wrappers for Ansible

Project description

ansible-tools

This is a set of wrappers around the ansible, ansible-playbook and ansible-vault commands which integrate with the system keyring to retrieve the vault password.

It should work on both Linux and OS X.

Installation

With Homebrew:

pip install ansible-tools

Otherwise:

pip install --user ansible-tools

Then make sure to add the local bin directory to the $PATH. it is different on each platform, please refer to pip’s documentation.

Otherwise, if you’re feeling dirty:

sudo pip install ansible-tools

Usage

Go to the same directory that contains your playbooks and then run:

avault-helper --save

You will be prompted for a vault name (which can be anything) and the unlock password. This data is securely stored in your login keyring.

The vault name is stored in the ansible.cfg file, which will be created if missing.

At this point you can use the following commands in place of Ansible’s ones to have the vault be automatically unlocked at each run:

  • aplay: in place of ansible-playbook

  • arun: in place of ansible

  • avault: in place of ansible-vault

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

ansible-tools-0.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

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