Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically set rhel9stig_gui variable #29

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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