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
..