From 8766b2f31bac9363ec2c2ecb70ab97dc708e60e2 Mon Sep 17 00:00:00 2001 From: Kai-Philipp Nosper <kai-philipp.nosper@stud.h-da.de> Date: Tue, 16 Nov 2021 12:15:42 +0100 Subject: [PATCH] Add os detail prints --- local.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/local.yml b/local.yml index 466be3f..be6de2c 100644 --- a/local.yml +++ b/local.yml @@ -1,5 +1,6 @@ --- - hosts: localhost + gather_facts: true vars: target_user: pi jupyter_service: true @@ -10,7 +11,12 @@ fail: msg: Python version is not supported. Set ignore_python_version to true to ignore this. when: (not ignore_python_version) and not (ansible_python_version is version('3.7.0', '>=') and ansible_python_version is version('3.10.0', '<')) - + - name: System details + debug: msg="{{ item }}" + with_items: + - "{{ ansible_distribution }}" + - "{{ ansible_distribution_version }}" + - "{{ ansible_distribution_major_version }}" # - name: Upgrade packages # become: true # apt: -- GitLab