Ansible load vault password from a file

  • Create a file named .vault-pass.txt and place inside it the vault password.
  • Invoke ansible with:
    --vault-password-file ~/.vault-pass.txt