Skip to content

Commit

Permalink
Using ansible_distribution_release instead of ansible_lsb.codename, w…
Browse files Browse the repository at this point in the history
…hich is much more widespread
  • Loading branch information
jonashackt committed Sep 1, 2020
1 parent e2015ec commit c3450c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# tasks file for docker
- name: Log on which Linux distro Docker is going to be installed
debug:
msg: "The distro is: {{ ansible_distribution|lower }} and the version name is: {{ ansible_lsb.codename }}"
msg: "The distro is: {{ ansible_distribution|lower }} and the version name is: {{ ansible_distribution_release|lower }}"

- name: Install packages needed to add Docker repository later (see https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
apt:
Expand Down

0 comments on commit c3450c3

Please sign in to comment.