Encrypt a file with Vault

Encrypt a whole variables file with Ansible Vault

ansible-vault encrypt vars/secrets.yml

tool
ansible56 commands
tags
ansiblesecrets

More ansible commands

  • ansible-vault decrypt vars/secrets.yml

    Decrypt an Ansible Vault file in place

  • ansible-vault view vars/secrets.yml

    Show the contents of a vault file without decrypting it on disk

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

    Download the roles listed in requirements.yml to the local roles/ folder

  • ansible-galaxy collection install community.kubernetes

    Install an Ansible collection from Galaxy

  • ansible-inventory -i inventory --list | jq 'keys'

    Show the top-level keys of the parsed inventory: the groups and _meta

all 56 ansible commands