Setting base aws cli to pull files from s3

This commit is contained in:
shockrah 2024-04-20 13:45:07 -07:00
parent c09dd6203f
commit f87cc90d9e
2 changed files with 14 additions and 0 deletions

View File

@ -12,3 +12,5 @@
import_tasks: ../tasks/nginx-setup.yml import_tasks: ../tasks/nginx-setup.yml
- name: Test local sites - name: Test local sites
import_tasks: ../tasks/tests/local-site-presence.yml import_tasks: ../tasks/tests/local-site-presence.yml
- name: Ensure AWS is setup
import_tasks: ../tasks/setup-aws-cli.yml

View File

@ -0,0 +1,12 @@
- name: Ensure we have the unzip package
apt:
name: unzip
- name: Download the AWS CLI V2
get_url:
url: https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
dest: /tmp/awscli.zip
- name: Unzip the cli to the tmp dir
shell: unzip /tmp/awscli.zip -d /tmp
- name: Run awscli installer
shell: /tmp/aws/install