From 133c22bf5e772f88a8212adb58ce4802bf162fa6 Mon Sep 17 00:00:00 2001 From: PrymalInstynct Date: Mon, 16 Sep 2024 11:56:10 -0600 Subject: [PATCH] Made change to check is Gnome is installed Dynamically Signed-off-by: PrymalInstynct --- defaults/main.yml | 4 ++-- tasks/prelim.yml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 23b8064..98a6082 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -597,8 +597,8 @@ rhel_09_653120: true ### CONTROLS -## Grahical/Gnome interface required -rhel9stig_gui: false +## Graphical/Gnome interface required +rhel9stig_gui: "{{ rhel_09_gnome_present.stat.exists | default(false) }}" ## SSHD rhel9stig_sshd_config_file: /etc/ssh/sshd_config diff --git a/tasks/prelim.yml b/tasks/prelim.yml index 090b658..4ebefc6 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -210,6 +210,13 @@ failed_when: rhel9stig_network_manager_dns.rc not in [ 0, 1 ] register: rhel9stig_network_manager_dns +- name: PRELIM | Discover Gnome Desktop Environment + tags: + - always + ansible.builtin.stat: + path: /usr/share/gnome/gnome-version.xml + register: rhel_09_gnome_present + - name: PRELIM | Discover dconf systemdb when: - rhel9stig_gui