Commit 76d8747f authored by Ing. Matej Madeja's avatar Ing. Matej Madeja
Browse files


parent 84fe227d
......@@ -13,4 +13,20 @@ sudo_pass: my_big_secret
Run ansible reboot module and test the implementation.
ansible all -m reboot -b --ask-vault-pass --extra-vars '@passwds.yml'
To avoid having to enter the password all the time, it is possible to save the vault password in a file:
echo 'test' > .vault_pass
ansible all -m reboot -b --vault-password-file .vault_pass --extra-vars '@passwds.yml'
If you do not want to run ansible with multiple switches, you can use following:
# ansible.cfg
vault_password_file = /path/to/vault_password_file
# common.yml
- /vars/external_vars.yml
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment