4 Commits

Author SHA1 Message Date
Pierre-Louis Bonicoli
56d37dc542
Use ansible_distribution* facts instead of ansible_lsb
lsb_release executable might not be available.

The following errors occur when lsb_release isn't available:

    TASK [ensure-docker : Sanity check for upstream install mirrors]
    ERROR
    {
      "msg": "The conditional check '(docker_mirror_base_url | length) < 1' failed.
              The error was: error while evaluating conditional ((docker_mirror_base_url | length) < 1):
              'dict object' has no attribute 'id' [...]"
    }

    LOOP [ensure-package-repositories : Add apt repositories]
    ERROR
    {
      "msg": "'dict object' has no attribute 'codename'"
    }

Change-Id: I93ea718f24bd7176dca9daa82fe5b2635e21d730
2020-09-17 09:31:13 +02:00
Ian Wienand
bd992f3a76 ensure-docker: remove amd64 architecture pin
Just let this install the repo for whatever architecture we're running
on.

Change-Id: Ifdff9b731db5d5ab93dd7da6f7d8a311b3162113
2020-08-14 10:30:03 +10:00
Mohammed Naser
00cc4aa038 ensure-docker: refactor to use ensure-package-repositories
This patch refactors ensure-docker to use the new ensure-package-repostories
role which cleans up the codebase for it a lot.  It also converges the
Debian and Ubuntu configuration as they were pretty much the same.

Also, it updates the Docker to the proper GPG key as while refactoring,
it was exposed that it was using the wrong key.  Docker uses a different
key for Debian and RHEL based packaging.

Change-Id: Iad430c6a31be0750c1a0f50e12a26df230de9f4e
2020-05-01 15:49:30 +02:00
vass
c80b593fb6 Rename install-docker to ensure-docker for consistency
The old role will be kept and include ensure-docker for backwards compatability.

Change-Id: Icb76a954b04631c405b09eb54343fd852a511b83
2020-04-04 15:41:29 -04:00