Skip to content

Commit

Permalink
Made change to check is Gnome is installed Dynamically
Browse files Browse the repository at this point in the history
Signed-off-by: PrymalInstynct <[email protected]>
  • Loading branch information
PrymalInstynct committed Sep 16, 2024
1 parent cd0c06d commit 133c22b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 133c22b

Please sign in to comment.