refs #8025 vault_password_file commented
This commit is contained in:
parent
1e565544fe
commit
18ac55d1c8
|
@ -16,11 +16,14 @@ locally to ensure they work properly.
|
|||
|
||||
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.*
|
||||
|
||||
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
|
||||
|
||||
Place vault password into *.vaultpass* file.
|
||||
|
|
|
@ -5,7 +5,6 @@ roles_path = ./roles
|
|||
inventory = ./inventories/production
|
||||
gathering = smart
|
||||
interpreter_python = auto_silent
|
||||
vault_password_file = .vaultpass
|
||||
|
||||
[privilege_escalation]
|
||||
become = True
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
ansible-playbook --vault-password-file .vaultpass $@
|
Loading…
Reference in New Issue