summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-02 16:46:16 +0100
committerNick White <git@njw.name>2019-09-02 16:46:16 +0100
commit2c8360f1f9ee9696f2dbf8d85aa3aa3caae09b63 (patch)
tree70783ef49044b278e0f78fc6a481435e79bd043f
parent7648b7645546d0cd8dc0f00ba6d1e8066764565f (diff)
Temporarily include aws credentials so the pipeline can download from the s3 bucket successfully
-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