Execution
Date
14 Dec 2025 10:04:43 +0000
Duration
00:10:10.66
Controller
aio1.openstack.local
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.13.5
Summary
15
Hosts
603
Tasks
2357
Results
18
Plays
157
Files
0
Records
File: /home/zuul/src/opendev.org/openstack/ansible-hardening/tasks/rhel7stig/graphical.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | --- # Copyright 2016, Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - name: Check if gdm is installed and configured ansible.builtin.stat: path: /etc/gdm/custom.conf register: gdm_conf_check check_mode: false - name: V-71953 - The operating system must not allow an unattended or automatic logon to the system via a graphical user interface ansible.builtin.lineinfile: dest: /etc/gdm/custom.conf line: "^AutomaticLoginEnable=true" state: absent when: - gdm_conf_check.stat.exists - security_disable_gdm_automatic_login | bool tags: - graphical - high - V-71953 - name: V-71955 - The operating system must not allow guest logon to the system. ansible.builtin.lineinfile: dest: /etc/gdm/custom.conf line: "^TimedLoginEnable=true" state: absent when: - gdm_conf_check.stat.exists - security_disable_gdm_timed_login | bool tags: - graphical - high - V-71955 - name: Check for dconf profiles ansible.builtin.stat: path: /etc/dconf/profile register: dconf_check tags: - always - name: Create a user profile in dconf ansible.builtin.copy: src: dconf-user-profile dest: /etc/dconf/profile/user mode: "0644" when: - dconf_check.stat.exists tags: - graphical - medium - V-71891 - V-71893 - V-71901 - name: Create dconf directories ansible.builtin.file: path: "{{ item }}" state: directory mode: "0755" with_items: - /etc/dconf/db/local.d/ - /etc/dconf/db/local.d/locks - /etc/dconf/db/gdm.d/ when: - dconf_check.stat.exists tags: - graphical - medium - V-71859 - V-71891 - V-71893 - V-71901 - name: Configure graphical session locking ansible.builtin.template: src: dconf-screensaver-lock.j2 dest: /etc/dconf/db/local.d/00-screensaver mode: "0644" when: - dconf_check.stat.exists notify: - Dconf update tags: - graphical - medium - V-71891 - V-71893 - V-71901 - name: Prevent users from changing graphical session locking configurations ansible.builtin.template: src: dconf-session-user-config-lockout.j2 dest: /etc/dconf/db/local.d/locks/session mode: "0644" when: - dconf_check.stat.exists notify: - Dconf update tags: - graphical - medium - V-71891 - V-71893 - V-71901 - name: Create a GDM profile for displaying a login banner ansible.builtin.copy: src: dconf-profile-gdm dest: /etc/dconf/profile/gdm mode: "0644" when: - dconf_check.stat.exists notify: - Dconf update tags: - graphical - medium - V-71859 - name: Create a GDM keyfile for machine-wide settings ansible.builtin.template: src: dconf-gdm-banner-message.j2 dest: "{{ item }}" mode: "0644" with_items: - /etc/dconf/db/gdm.d/01-banner-message - /etc/dconf/db/local.d/01-banner-message when: - dconf_check.stat.exists notify: - Dconf update tags: - graphical - medium - V-71859 |