View an encrypted file

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

ansible-vault view vars/secrets.yml

tool
ansible56 commands
tags
ansiblesecrets

More ansible commands

  • 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

  • ansible-playbook playbook.yml -e 'env=prod version=2.0'

    Pass extra variables at runtime; they override the playbook defaults

  • ansible-playbook playbook.yml -vvv

    Maximum verbosity: every task, connection and output

all 56 ansible commands