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)
- Avoid doing ssh connection if _remote_expand_user already failed HOT 2
- ansible.builtin.dnf doesn't install i686 packages HOT 1
- [ansible.builtin.copy] Fails on filesystems which do not support chmod HOT 7
- if ansible.builtin.fileglob plugin is used in ansible.builtin.template, it searches under files/ HOT 1
- Warnings about discovered Python interpreter on any play in version 2.17.0 HOT 3
- Regression with ansible_pkg_mgr discovery on Amazon Linux 2 HOT 9
- `file`: incomplete diff when creating parent directories HOT 1
- `file`: incomplete/misleading/missing diff when recursively setting attributes HOT 1
- systemd module silently fails to enable generated serviced unit HOT 9
- Add ability to break out of loop on a task HOT 2
- This breaks the ability to update RHEL-7 machines HOT 2
- `meta: end_host` returns `rc=2` when run in a rescue block HOT 1
- ansible.builtin.tempfile state:absent error HOT 5
- File descriptor leak in lib/ansible/plugins/connection/ssh.py HOT 3
- `unarchive`: Using the `include` option fails with `.tar.xz` archive HOT 3
- service_facts module on OpenBSD does not support '=' within service variables (too many values to unpack (expected 2)) HOT 2
- remote_user used with a loop results in fatal "item is undefined" HOT 4
- ansible_python_interpreter="/usr/bin/env python3" doesn't work anymore HOT 9
- User module trying to modify permissions in home directory after GID change (even when setting home: false) HOT 3
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.