My plan is to copy file from ec2 to s3 bucket using ansible, Here I've make playbook but getting some error:copy2s3.yml---- name: Copy to s3   s3:     aws_access_key: {{ lookup('env','aws_key') }}     aws_secret_key: {{ lookup('env','aws_secret') }}     bucket: {{ aws_packages_bucket }}     object: /JI79IML/my_part_X86_64_c7.15.tar.gz     dest: /data/parts/JI79IML/my_part_X86_64_c7.15.tar.gz     mode: get     overwrite: noGetting below error:$ ansible-playbook copy2s3.yml -i 172.18.2.12, ERROR! 's3' is not a valid attribute for a PlayThe error appears to have been in '/home/ubuntu/bk/copy2s3.yml': line 2, column 3, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be:---- name: Copy to s3^ here
Copy files to aws s3 bucket using Ansible
aws;ansible