From ab1399979de3d8b77d28cdfe1f7730deb54b4cb1 Mon Sep 17 00:00:00 2001 From: Vitaly Znachenok Date: Fri, 29 Dec 2017 21:44:16 +0300 Subject: [PATCH] refactoring --- README.md | 3 +++ group_vars/all.example | 6 ++++++ hosts.example | 2 ++ site.yml | 1 - 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 group_vars/all.example create mode 100644 hosts.example diff --git a/README.md b/README.md index 555b2e2..e80fd2c 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/group_vars/all.example b/group_vars/all.example new file mode 100644 index 0000000..e988f84 --- /dev/null +++ b/group_vars/all.example @@ -0,0 +1,6 @@ +--- +#AWS Key +access_key: "KEY_NAME" +secret_key: "KEY_SECRET" + +s3_bucket: "BUCKET_NAME" diff --git a/hosts.example b/hosts.example new file mode 100644 index 0000000..487d9dc --- /dev/null +++ b/hosts.example @@ -0,0 +1,2 @@ +[backup] +INSERT_HERE_SERVERS_HOSTNAME_OR_IPs diff --git a/site.yml b/site.yml index f329e90..d394ce0 100644 --- a/site.yml +++ b/site.yml @@ -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