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

If you are on OS X and have Homebrew’s Python:

pip install ansible-tools

Otherwise:

pip install --user ansible-tools

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

Otherwise, if you’re feeling a badass and want to sudo your way out, then run:

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. The former is stored in ansible.cfg alongside your playbooks, the latter is securely stored in your keyring.

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

  • alocal: in place of ansible-playbook -c local

  • 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.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible-tools-0.0.2.macosx-10.10-intel.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file ansible-tools-0.0.2.tar.gz.

File metadata

  • Download URL: ansible-tools-0.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ansible-tools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f11e2a64cea5a8111b7bcecd02c1ec286c6ee72bc3a1b514b6af58d2019a1b9
MD5 876bc917d505d32281a7c4c2cad48247
BLAKE2b-256 485e92b9f508a1e55bf64b30f18ea5b9f8be9a933770c3512619af35947a96dc

See more details on using hashes here.

File details

Details for the file ansible-tools-0.0.2.macosx-10.10-intel.tar.gz.

File metadata

File hashes

Hashes for ansible-tools-0.0.2.macosx-10.10-intel.tar.gz
Algorithm Hash digest
SHA256 006757c9f30302c72fca1bad9376fe455e09f16bd8c70a86b38084b185c06dba
MD5 230715e24cf058c3d6b10bb0cde959fc
BLAKE2b-256 6d78fa74b33c089987e3ba782b115e9e163ce4c968548cbe07e2beac2171c28c

See more details on using hashes here.

Supported by

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