Commit 7b75079f authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: fix non existing ansible_lsb.codename

The command lsb_release must be present on the system to have a working
anisble_lsb dictionary
parent 5c99aed9
......@@ -12,3 +12,7 @@
apt: name=gpg-agent state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 11
- name: Install lsb-release using apt
apt: name=lsb-release state=present
when: ansible_distribution == "Debian" or ansible_distribution == "Ubuntu"
......@@ -2,3 +2,5 @@
- yum: name=libselinux-python state=present update_cache=yes
when: ansible_distribution == "Fedora" and ansible_distribution_major_version == "26"
- yum: name=redhat-lsb-core state=present update_cache=yes
when: ansible_distribution == "Fedora"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment