Skip to content

Commit

Permalink
Avoid usage of ansible_lsb to not depend on lsb-release package on De…
Browse files Browse the repository at this point in the history
…bian (#377)
  • Loading branch information
Slavek Kabrda authored Jul 19, 2021
1 parent a4e125a commit b481e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/pkg-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
dest: "{{ datadog_apt_trusted_d_keyring }}"
mode: "0644"
remote_src: yes
when: ((ansible_distribution == 'Debian' and ansible_lsb.major_release|int < 9) or (ansible_distribution == 'Ubuntu' and ansible_lsb.major_release|int < 16)) and not ansible_check_mode
when: ((ansible_distribution == 'Debian' and ansible_distribution_major_version|int < 9) or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 16)) and not ansible_check_mode

- name: Ensure Datadog non-https repositories and repositories not using signed-by option are deprecated
apt_repository:
Expand Down

0 comments on commit b481e3d

Please sign in to comment.