Simplify vault password handling

This commit is contained in:
Markus 2017-03-27 16:44:09 +02:00
parent 578e8ee510
commit aac39a2e21
3 changed files with 19 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.vault_pass
site.retry

View File

@ -1,12 +1,16 @@
Ansible Freifunk Regensburg
===========================
## Requirements
The vault password must be stored in `.vault_pass`.
## Running Ansible
To deploy all defined roles on all servers simply run `ansible-playbook --ask-vault-pass -i hosts site.yml`.
To deploy only one server run `ansible-playbook -i "imac1-local," site.yml` (--ask-vault-pass is currently only required on the confluence host).
To deploy all defined roles on all servers simply run `ansible-playbook site.yml`.
To deploy only one server run `ansible-playbook -i "hostname," site.yml`.
TBA
## Notes

11
ansible.cfg Normal file
View File

@ -0,0 +1,11 @@
[defaults]
ansible_managed = This file is managed by ansible, do not make manual changes - they may be overridden at any time.
inventory = ./hosts
library = ./library
nocows = 1
remote_user = root
roles_path = ./roles
vault_password_file = ./.vault_pass
[ssh_connection]
pipelining = true