Encrypt variable with vault

Inline-encrypt a string for use in playbooks

ansible-vault encrypt_string 'secret_value' --name 'db_password'

tool
ansible56 commands
tags
ansiblesecrets

More ansible commands

  • ansible-vault encrypt vars/secrets.yml

    Encrypt an entire variable file with Ansible Vault

  • ansible-vault decrypt vars/secrets.yml

    Decrypt an Ansible Vault-encrypted file in place

  • ansible-vault view vars/secrets.yml

    View contents of vault-encrypted file without decrypting on disk

  • ansible-galaxy install -r requirements.yml -p roles/

    Download roles listed in requirements.yml to local roles dir

  • ansible-galaxy collection install community.kubernetes

    Install an Ansible collection from Ansible Galaxy

all 56 ansible commands