P E N C I L
Login
File

{{lookup('file', 'localpath')}}

slurp

src: remote file

template:

src: aws_config.j2 . // can comes from templates folder

dest: "{{awscli_user_home_dir}}/.aws/config"

owner: "{{awscli_user}}"

group: "{{awscli_user}}"

mode: 0600

- name: Download awscliv2 installer.

unarchive:

src: https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.61.zip

dest: /tmp

remote_src: yes

creates: /tmp/aws

mode: 0755