refs #8025 vault_password_file commented

This commit is contained in:
Juan Ferrer 2024-09-27 14:07:07 +02:00
parent 1e565544fe
commit 18ac55d1c8
3 changed files with 6 additions and 2 deletions

View File

@ -16,11 +16,14 @@ locally to ensure they work properly.
Launch playbook on the fly on a host not declared in the inventory. Launch playbook on the fly on a host not declared in the inventory.
``` ```
ansible-playbook -u root -i <ip_or_hostname>, [--tags tag1,tag2] playbooks/test.yml ./run-playbook.sh -i <ip_or_hostname>, [--tags tag1,tag2] playbooks/test.yml
``` ```
*Note the comma at the end of the hostname or IP.* *Note the comma at the end of the hostname or IP.*
When running playbooks that use the vault, the *vault-playbook.sh* script can
be used, it is ovelay over the original *ansible-playbook* command.
## Manage vault ## Manage vault
Place vault password into *.vaultpass* file. Place vault password into *.vaultpass* file.

View File

@ -5,7 +5,6 @@ roles_path = ./roles
inventory = ./inventories/production inventory = ./inventories/production
gathering = smart gathering = smart
interpreter_python = auto_silent interpreter_python = auto_silent
vault_password_file = .vaultpass
[privilege_escalation] [privilege_escalation]
become = True become = True

2
vault-playbook.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
ansible-playbook --vault-password-file .vaultpass $@