aws_s3 Module error File or Folder doesn't exist.. - Unable to download the S3 Module.

14 views
Skip to first unread message

Kalyan Alamuru

unread,
Aug 13, 2019, 4:51:52 AM8/13/19
to Ansible Project
Hi.

I'm using aws_s3(upgraded recently early we were using s3 as we are on ansible 2.3), I'm getting error :  raise self._exception\nIOError: [Errno 2] No such file or directory: '/var/lib/awx/builds/consumer_applications/xxxx.tgz.F51acB96 (xxx is deployment file stroed in our S3 Bucket which I wanted to download and deploy into our web server)

our S3 Module :

- aws_s3:
    aws_access_key: "{{ aws_access_key }}"
    aws_secret_key: "{{ aws_secret_key }}"
    bucket: "livebuzz-builds"
    region: "eu-west-1"
    object: "/{{ git_repo }}/{{ git_branch|regex_replace('/', '__') }}.tar.gz"
    dest: "{{ consumer_build_dir }}.tgz"
    mode: get

I checked Consumer_build _dir exists with write permission for user awx and also file in S3 exists which we are trying to download to deploy. Can you see any error in above config or we missing anything which is causing above error. Our ansible Version as follows.

ansible 2.8.2
  config file = None
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)


Regards
Kalyan.


Reply all
Reply to author
Forward
0 new messages