Skip to content

2nd Ed, PDF p35, 'package' command has yum servers issue (CentOS 8 EOL) #453

@mcheck

Description

@mcheck

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions