I guys, I need to some help on this one.
I create a task to upload some files on an S3 bucket.
When running the playbook I get the following error:
FAILED! => {"changed": false, "msg": "dateutil required for this module"}
Now I check if python-dateutil is install in pip and it does. Here is what I have
ansible==2.9
boto==2.49.0
boto3==1.9.178
botocore==1.12.178
python-dateutil==2.8.2
python 3.8
This is the task, based on this page
https://docs.ansible.com/ansible/2.9/modules/s3_sync_module.html - name: Sync static folder to S3
s3_sync:
bucket: myS3HomeBuckek
file_root: /var/www/project1/.static
key_prefix: project/static
file_change_strategy: force
permission: public-read
region: us-east-2
run_once: yes
tags: Static
I have tried to uninstall, reinstall with --no-cache-dir and even with --force-reinstall but the
msg still come back. Has anyone had this issue?
Its an old ansible (v2.9) that I am slowly migrating to the most recent one.
Any help is appreciated.
Thanks