From e1d4e180d9dc051a0b87c18e01f8db88a90d7f21 Mon Sep 17 00:00:00 2001 From: Calvin Steenbergen Date: Thu, 3 Apr 2025 18:55:48 +0200 Subject: [PATCH] different settings --- test.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test.yaml b/test.yaml index d9c501a..726ac8b 100644 --- a/test.yaml +++ b/test.yaml @@ -2,7 +2,14 @@ - hosts: "{{ target_hosts }}" become: true tasks: - - name: Install Apache2 - ansible.builtin.package: - name: apache2 - state: present \ No newline at end of file + - name: Gather Linux Distribution Facts + ansible.builtin.setup: + filter: ansible_distribution* + + - name: Display Linux Distribution Information + ansible.builtin.debug: + msg: "Linux Distribution: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release | default('') }}" + + - name: Display Linux Kernel Version + ansible.builtin.debug: + msg: "Linux Kernel: {{ ansible_kernel }}" \ No newline at end of file