OK that should work.
What is the exact command that you use to run the playbook?
What are the outputs of:

which ansible
which ansible-playbook
/opt/venv/venv_ansible29/bin/pip list


As a side note, I see you're using the 2.9.0 version, which is the very
first release of that minor version.
For instance I couldn't even run that here as I run into "ERROR! Unexpected
Exception, this is probably a bug: cannot pickle 'module' object".
A first good step in your upgrade would be to start using the latest patch
release of 2.9 (which is 2.9.27).


On Wed, 9 Feb 2022 at 14:48, Jason Bourne <[email protected]> wrote:

> Hi Mr Visser
> Thanks for answering
>
> Here is the output
>
> ansible 2.9.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path =
> ['/home/ansible/.ansible/plugins/modules',
> '/usr/share/ansible/plugins/modules']
>   ansible python module location =
> /opt/venv/venv_ansible29/lib/python3.8/site-packages/ansible
>   executable location = /opt/venv/venv_ansible29/bin/ansible
>   python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
>
> I realize the path in the "configured module search path" were not there.
> I created them but not if that is releated.
> Le mardi 8 février 2022 à 17:45:42 UTC-5, [email protected] a écrit :
>
>> what is the output of:
>>
>> ansible --version
>>
>>
>> On Tue, 8 Feb 2022 at 21:43, Jason Bourne <[email protected]> wrote:
>>
>>> 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
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/e7a7d9df-4348-46d3-a4f7-7a4f3df1ac61n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/e7a7d9df-4348-46d3-a4f7-7a4f3df1ac61n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Dick Visser
>> Trust & Identity Service Operations Manager
>> GÉANT
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f621122f-7ccc-4e18-bd2a-99b51a58ed93n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f621122f-7ccc-4e18-bd2a-99b51a58ed93n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPo_NmddLwfyvT1JZhM4TZ9-q2etb-dc_N0fdhtPcxURg%40mail.gmail.com.

Reply via email to