summaryrefslogtreecommitdiff
path: root/roles/pipeliner/tasks/auth.yml
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 /roles/pipeliner/tasks/auth.yml
parent7648b7645546d0cd8dc0f00ba6d1e8066764565f (diff)
Temporarily include aws credentials so the pipeline can download from the s3 bucket successfully
Diffstat (limited to 'roles/pipeliner/tasks/auth.yml')
-rw-r--r--roles/pipeliner/tasks/auth.yml14
1 files changed, 14 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