diff --git a/docker-host/tasks/main.yml b/docker-host/tasks/main.yml index c15fc761..86d10437 100644 --- a/docker-host/tasks/main.yml +++ b/docker-host/tasks/main.yml @@ -21,13 +21,13 @@ - name: Add Docker repository apt_repository: - repo: 'deb [arch=amd64] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable' + repo: 'deb [arch=amd64] https://download.docker.com/linux/debian {{ ansible_lsb.codename }} stable' state: present update_cache: no filename: docker.list - include: jessie_backports.yml - when: ansible_distribution_release == 'jessie' + when: ansible_lsb.codename == 'jessie' - name: Add Docker's official GPG key apt_key: