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 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.1.macosx-10.10-intel.tar.gz (6.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ansible-tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fd7d97b9edd461d8a034decd56e5b3c63490387d5941ce67370039782a9b91fb
MD5 653070f77e0389f3ed00d3b0fdc0364a
BLAKE2b-256 ee35d63a00a403f680da974142979fdaecb07a36e70e563bd45be03a47358a33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ansible-tools-0.0.1.macosx-10.10-intel.tar.gz
Algorithm Hash digest
SHA256 d0feae0ffc04d95c2e94d478cba6c098ab51206c66b93ed8db71d77c4b1efe79
MD5 6a2387f29cf9741cb09cb4fb4c0f559f
BLAKE2b-256 fddeb19d4bd2db3b184fd2e959a5d94311a252ebc5ce2be3227869825094835b

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