-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
On p35 of 2nd Ed.:
ansible app -b -m package -a "name=git state=present"
192.168.57.4 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
"rc": 1,
"results": []
}
192.168.57.5 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist",
"rc": 1,
"results": []
}
Servers created as CentOS8s.
In the machine:
[vagrant@orc-app1 ~]$ sudo yum update -y
CentOS Linux 8 - AppStream 152 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Stackexchange suggests this is a resolv.conf issue, but even replacing resolv.conf with
nameserver 8.8.8.8
nameserver 8.8.4.4
Same error results.
Reactions are currently unavailable