summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/pipeliner/tasks/auth.yml14
-rw-r--r--roles/pipeliner/tasks/main.yml1
2 files changed, 15 insertions, 0 deletions
diff --git a/roles/pipeliner/tasks/auth.yml b/roles/pipeliner/tasks/auth.yml
new file mode 100644
index 0000000..f2f060a
--- /dev/null
+++ b/roles/pipeliner/tasks/auth.yml
@@ -0,0 +1,14 @@
+---
+# This will be unnecessary once IAM stuff is set up correctly
+
+- name: Create AWS config directory
+ file:
+ path: /home/{{ ansible_user }}/.aws
+ state: directory
+ mode: 0755
+
+- name: Install AWS credentials
+ copy:
+ src: /home/nick/.aws/credentials
+ dest: /home/{{ ansible_user }}/.aws/credentials
+ mode: 0600
diff --git a/roles/pipeliner/tasks/main.yml b/roles/pipeliner/tasks/main.yml
index d9b6830..5830e86 100644
--- a/roles/pipeliner/tasks/main.yml
+++ b/roles/pipeliner/tasks/main.yml
@@ -1,2 +1,3 @@
---
+- include: auth.yml
- include: pipeline.yml