Comments (3)
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the component bot command.
from ansible.
This does not appear to be a bug in Ansible, and I do not believe that you have correctly identified your issue with this task. If the problem was that get_url
wasn't following a redirect, the reported error would be the redirect (HTTP 302) rather than Forbidden (HTTP 403).
Rather, the problem appears to be that the remote server is actively denying the request. We can verify this by telling get_url
to pretend that it is curl:
- ansible.builtin.get_url:
url: https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.deb
dest: /var/tmp/mysql_apt_config.deb
http_agent: "curl/7.76.1"
Output:
TASK [ansible.builtin.get_url] *************************************************
task path: /home/ec2-user/test.yml:3
changed: [localhost] =>
changed: true
checksum_dest: null
checksum_src: 22f6db31e861987519119b525d13798f8543987b
dest: /var/tmp/mysql_apt_config.deb
elapsed: 1
gid: 0
group: root
md5sum: 830ae275a5fdc535f49f6f7c5e438816
mode: '0644'
msg: OK (18200 bytes)
owner: root
size: 18200
src: /root/.ansible/tmp/ansible-moduletmp-1718479939.304299-undowb77/tmpa9jc8ev1
state: file
status_code: 200
uid: 0
url: https://dev.mysql.com/get/mysql-apt-config_0.8.30-1_all.deb
from ansible.
Interesting, my mistake, that wasn't something I thought about checking. I realised that I was getting permission denied but I have seen that behavior before with the URI module with follow redirects off.
I'll close the issue.
from ansible.
Related Issues (20)
- validate-modules test: does not notice if alias is added to the wrong option in documentation HOT 2
- git shortlog not working with async shell HOT 2
- `/usr/bin/env python3: not found` when using as a Shebang in a module HOT 7
- group module with local=true can be very slow when machine is joined to an LDAP domain HOT 1
- ansible.builtin.apt apt-get upgrade output differs from expected in Ubuntu 22.04LTS when LANGUAGE=en_GB: set, causing 'changed' to always be set to 'true' HOT 2
- GALAXY_TOKEN_PATH config does not work HOT 3
- keyed_groups in inventory HOT 1
- ansible.builtin.dnf: missing list updates/available functionality like in rpm module HOT 1
- FileNotFoundError when executing chmod on directory HOT 2
- Loop label and register: issue with skipped items HOT 3
- ansible_fail_result is undefined HOT 1
- Unable to configure url credentials for private collection installed by url HOT 3
- Not able to run the win_update task on Windows server when Trellix Threat prevention enabled with Ansible version 2.16.6 HOT 2
- apt autoremove diff mode doesn't work in check mode HOT 1
- Add ability to include comments in jinja2 conditional blocks or a way to suppress "[WARNING]: conditional statements should not include jinja2 templating delimiters" HOT 1
- Setting a mac address in a docker_container isnt respected HOT 2
- Using from_yaml_all with data which contains a date gets "AnsibleUnsafeText" HOT 2
- There are no definitions for valid color options HOT 1
- docker_container keeps recreating container HOT 2
- Unable to upload zip.bin file using uri module correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.