Skip to main content

Ansible Modules for Hashicorp Vault

Project description

Ansible modules for Hashicorp Vault.

Usage

The following example writes the giant secret with two values and then reads the fie value:

---
- hosts: localhost
  tasks:
    - hashivault_write:
        secret: giant
        data:
            foo: foe
            fie: fum
    - hashivault_read:
        secret: 'giant'
        key: 'fie'
      register: 'fie'
    - debug: msg="Value is {{fie.value}}"

If you are not using the VAULT_ADDR and VAULT_TOKEN environment variables, you may be able to simplify your playbooks with an action plugin. This can be some somewhat similar to this example action plugin.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

ansible-modules-hashivault-2.4.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file ansible-modules-hashivault-2.4.0.tar.gz.

File metadata

File hashes

Hashes for ansible-modules-hashivault-2.4.0.tar.gz
Algorithm Hash digest
SHA256 8e64103a2faa313d7fdcc523be8d8ba062f5eab4c1855dbdcf7ba90b939ec3c8
MD5 00f0a0a77c9787e4f4f6cf4faee4b4e4
BLAKE2b-256 5ae01f44166f731c9be6ad4c3676adeb140b55825e03b72e1482c26d133788a0

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