dont not run section 1.8 if not gdm PR #364 from public

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-08-14 16:17:45 +01:00
parent 62095f75fe
commit 73320db603
No known key found for this signature in database
GPG key ID: 997FF7FE93AEB5B9
2 changed files with 3 additions and 0 deletions

View file

@ -592,6 +592,8 @@ rhel9cis_warning_banner: Authorized users only. All activity may be monitored an
# End Banner # End Banner
## Control 1.8.x - Settings for GDM ## Control 1.8.x - Settings for GDM
# do not run Control 1.8.x if using a display manager different than gdm
rhel9cis_display_manager: "gdm"
## 1.8 GDM graphical interface ## 1.8 GDM graphical interface
rhel9cis_gui: "{{ prelim_gnome_present.stat.exists | default(false) }}" rhel9cis_gui: "{{ prelim_gnome_present.stat.exists | default(false) }}"
# This variable specifies the GNOME configuration database file to which configurations are written. # This variable specifies the GNOME configuration database file to which configurations are written.

View file

@ -61,5 +61,6 @@
file: cis_1.7.x.yml file: cis_1.7.x.yml
- name: "SECTION | 1.8 | Gnome Display Manager" - name: "SECTION | 1.8 | Gnome Display Manager"
when: rhel9cis_display_manager == 'gdm'
ansible.builtin.import_tasks: ansible.builtin.import_tasks:
file: cis_1.8.x.yml file: cis_1.8.x.yml