diff --git a/infra/static-vultr/ansible/playbooks/static-host-setup.yml b/infra/static-vultr/ansible/playbooks/static-host-setup.yml index f325ef6..66ef60a 100644 --- a/infra/static-vultr/ansible/playbooks/static-host-setup.yml +++ b/infra/static-vultr/ansible/playbooks/static-host-setup.yml @@ -12,3 +12,5 @@ import_tasks: ../tasks/nginx-setup.yml - name: Test local sites import_tasks: ../tasks/tests/local-site-presence.yml + - name: Ensure AWS is setup + import_tasks: ../tasks/setup-aws-cli.yml diff --git a/infra/static-vultr/ansible/tasks/setup-aws-cli.yml b/infra/static-vultr/ansible/tasks/setup-aws-cli.yml new file mode 100644 index 0000000..5ac58f7 --- /dev/null +++ b/infra/static-vultr/ansible/tasks/setup-aws-cli.yml @@ -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 +