From 2c8360f1f9ee9696f2dbf8d85aa3aa3caae09b63 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Sep 2019 16:46:16 +0100 Subject: Temporarily include aws credentials so the pipeline can download from the s3 bucket successfully --- roles/pipeliner/tasks/auth.yml | 14 ++++++++++++++ roles/pipeliner/tasks/main.yml | 1 + 2 files changed, 15 insertions(+) create mode 100644 roles/pipeliner/tasks/auth.yml (limited to 'roles/pipeliner') 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 -- cgit v1.2.1-24-ge1ad