Re: [ansible-project] Re: Unable to upload zip.bin file using uri module

2024-08-07 Thread Matt Martz
That is not a correct assessment of the issue. The server software handling the upload is incapable of utilizing the Content-Transfer-Encoding of multipart form data, and the python standard lib code is only capable of sending binary data with a base64 (or similar) encoding. It is possible, but

Re: [ansible-project] Force ansible.builtin.uri to use minimum TLS version

2024-08-07 Thread Stephen Maher
Good feed back and thanks Garri (and not Caroline, apologies!) - hopefully someone will find this answer more easily in the future Regards > On 7 Aug 2024, at 12:24, Garri Djavadyan wrote: > > Hi Stephan, > > Thank you for your answer! > > It took a few weeks for my question to be

Re: [ansible-project] Force ansible.builtin.uri to use minimum TLS version

2024-08-07 Thread Garri Djavadyan
Hi Stephan, Thank you for your answer! It took a few weeks for my question to be approved actually: I did not even expect it would be published eventually. :) Yes, the method you mentioned works pretty well as I had to go with that approach 2 weeks ago. Sorry I could not mention the solution

[ansible-project] Re: Unable to upload zip.bin file using uri module

2024-08-07 Thread R Batchen
well i got my anser in ansible github - it is impossible at a moment to post bin files using uri thnks ב-יום שלישי, 16 ביולי 2024 בשעה 12:37:51 UTC+3, R Batchen כתב/ה: > also the correct file type is seen as "data" when uploaded and from uri it > is uploaded as ASCII > > ansible==2.10.5 >

Re: [ansible-project] Force ansible.builtin.uri to use minimum TLS version

2024-08-07 Thread Stephen Maher
Hi Caroline, In the past where I have had issues here I have created a custom SSL config, I think many forget that its possible to customise the SSL config in this way and this can solve some of the issues where the SSL config in controller or execution environment is not quite right for your

[ansible-project] Block rescue enquiries when multiple plays.

2024-08-07 Thread Zhen Jian Goh
When trying to run 2 plays, if first one hit block rescue, why it will stop second play? - name: Install docker. hosts: all tasks: - name: Include prerequisites tasks for RedHat-based OS. block: - name: Include prerequisites tasks. ansible.builtin.include_tasks: "{{ ansible_distribution }}-{{

[ansible-project] Force ansible.builtin.uri to use minimum TLS version

2024-08-07 Thread Garri Djavadyan
Hi Ansible folks, I am looking for a way to force ansible.builtin.uri to use minimum TLS version, namely TLSv1, so that Ansible can access a few legacy boxes that I still have to manage. Even though the underlying urllib.requests module can set the minimum version for an SSL context, I could