refactoring

This commit is contained in:
Vitaly Znachenok 2017-12-29 21:44:16 +03:00
parent d48c9078fd
commit ab1399979d
4 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,5 @@
# poa-devops
DevOps scripts
Prepare for run: Change variables in group_vars/all.
How run: ansible-playbook -i hosts site.yml

6
group_vars/all.example Normal file
View File

@ -0,0 +1,6 @@
---
#AWS Key
access_key: "KEY_NAME"
secret_key: "KEY_SECRET"
s3_bucket: "BUCKET_NAME"

2
hosts.example Normal file
View File

@ -0,0 +1,2 @@
[backup]
INSERT_HERE_SERVERS_HOSTNAME_OR_IPs

View File

@ -1,7 +1,6 @@
- hosts: backup
vars:
date: "{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}"
s3_bucket: "poa-backups"
user: root
roles:
- backup-parity