From 6887ffd6697360a53275be0b7a3d7ab7eab1c2d9 Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Fri, 3 May 2019 15:08:42 +0200
Subject: [PATCH] basic-system: add lsb-release for ansible facts

---
 basic-system/handlers/main.yml |  3 +++
 basic-system/tasks/main.yml    | 18 ++++++++++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/basic-system/handlers/main.yml b/basic-system/handlers/main.yml
index 8742a0a..669755b 100644
--- a/basic-system/handlers/main.yml
+++ b/basic-system/handlers/main.yml
@@ -15,3 +15,6 @@
 
 - name: gather network facts once again
   setup: gather_subset=network
+
+- name: gather minimal standard facts once again
+  setup: gather_subset=min
diff --git a/basic-system/tasks/main.yml b/basic-system/tasks/main.yml
index 6ab7159..a66f916 100644
--- a/basic-system/tasks/main.yml
+++ b/basic-system/tasks/main.yml
@@ -1,11 +1,25 @@
 ---
 
 - name: ensure /tmp is a tmpfs
-  mount: name=/tmp src=tmpfs fstype=tmpfs opts=nosuid,rw,noexec state=mounted
+  mount:
+    name: /tmp
+    src: tmpfs
+    fstype: tmpfs
+    opts: nosuid,rw,noexec
+    state: mounted
   tags:
-    - config
     - mount
 
+- name: ensure lsb release information is available
+  apt:
+    name: lsb-release
+    state: present
+  notify:
+    - gather minimal standard facts once again
+  tags:
+    - lsb
+- meta: flush_handlers
+
 - include: logging.yml
 - meta: flush_handlers
 - include: network.yml
-- 
GitLab