From 3b19761cc6a1fc17468d02d32ca7a86d520caacf Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 14 Sep 2017 09:14:49 +0300 Subject: [PATCH] - Install lsb-release for the ansible_lsb facts, added test via assertion in test playbook. --- tasks/main.yml | 6 ++++-- tests/playbook.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e471ea7..3f62d77 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,9 +10,11 @@ register: debian_bootstrap_install_python changed_when: "'Unpacking' in debian_bootstrap_install_python.stdout" -- name: Install IP utilities for networking facts +- name: Install requirements for more complete facts apt: - name: iproute + name: + - iproute + - lsb-release state: present update_cache: yes cache_valid_time: 3600 diff --git a/tests/playbook.yml b/tests/playbook.yml index fb84d49..a33b7cd 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -24,3 +24,4 @@ assert: that: - ansible_default_ipv4 is defined + - ansible_lsb is mapping -- GitLab