Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Configure aws region.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitillo committed Nov 23, 2015
1 parent 58aa9e6 commit 710e9a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

vars:
- project_directory: "{{ansible_env.HOME}}/medusa"
- aws_directory: "{{ansible_env.HOME}}/.aws"

tasks:
- include: deps.yml
Expand All @@ -27,6 +28,12 @@
sudo: yes
template: src=templates/medusa.j2 dest=/etc/supervisor/conf.d/medusa.conf

- name: Ensures {{aws_directory}} dir exists
file: path={{aws_directory}} state=directory

- name: setup aws
template: src=templates/config dest="{{aws_directory}}/config"

- name: restart supervisor
sudo: yes
command: service supervisor restart
Expand Down
2 changes: 2 additions & 0 deletions ansible/templates/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default]
region = {{region}}

0 comments on commit 710e9a4

Please sign in to comment.