haxorof/ansible-role-docker-ce

RHEL8 install fails due to missing docker-ce-edge repository

janorn opened this issue · 6 comments

Version Information

Ansible: 2.9.9

Role: 2.7.0

Steps to Reproduce

Fresh install of RHEL8 running a simple play that includes this role with default vars.

Expected Behavior

Succesful install

Actual Behavior

Failed at this task: Disable Docker CE repository channels (Fedor/CentOS/RedHat)

{
    "msg": "non-zero return code",
    "cmd": "yum-config-manager --disable docker-ce-edge",
    "stdout": "Updating Subscription Management repositories.",
    "stderr": "Error: No matching repo to modify: docker-ce-edge.",
    "rc": 1,
    "start": "2020-10-05 16:14:27.969840",
    "end": "2020-10-05 16:14:28.790724",
    "delta": "0:00:00.820884",
    "changed": false,
    "invocation": {
        "module_args": {
            "warn": false,
            "_raw_params": "yum-config-manager --disable docker-ce-edge",
            "_uses_shell": true,
            "stdin_add_newline": true,
            "strip_empty_ends": true,
            "argv": null,
            "chdir": null,
            "executable": null,
            "creates": null,
            "removes": null,
            "stdin": null
        }
    },
    "stdout_lines": [
        "Updating Subscription Management repositories."
    ],
    "stderr_lines": [
        "Error: No matching repo to modify: docker-ce-edge."
    ],
    "_ansible_no_log": false,
    "item": "edge",
    "ansible_loop_var": "item",
    "_ansible_item_label": "edge"
}

References

Adding a bogus repo called docker-ce-edge makes the install to be successful.

$ curl -s https://download.docker.com/linux/centos/docker-ce.repo | grep '^[\[e]'
[docker-ce-stable]
enabled=1
[docker-ce-stable-debuginfo]
enabled=0
[docker-ce-stable-source]
enabled=0
[docker-ce-test]
enabled=0
[docker-ce-test-debuginfo]
enabled=0
[docker-ce-test-source]
enabled=0
[docker-ce-nightly]
enabled=0
[docker-ce-nightly-debuginfo]
enabled=0
[docker-ce-nightly-source]
enabled=0

Thanks for reporting this! I will have a look at it.

I managed to reproduce the error you got by running the test suite I got. I will correct this but since it is related to this edge channel which they finally removed after so long time then I will do some more cleanups. Will do a new release either today or tomorrow.

Thanks again for reporting this problem! :)

Release 3.0.0 include the fix. See changelog for more info: https://github.com/haxorof/ansible-role-docker-ce/blob/master/CHANGELOG.md

Thanks!

Works perfectly. Default settings also picks up containerd from docker repo.