b692627317
- Create host variable file for vh-01.alexpires.dev with user, SSH, firewall, and VM configurations. - Update playbook_duo_security.yml to target the 2fa group. - Introduce playbook_virt_host.yml for setting up GPU passthrough on Fedora with QEMU/KVM. - Add required collections to requirements.yml for Podman and Libvirt. - Modify ctrlaltdel.yml to remove existing symlink for ctrl-alt-del.target before masking it. - Enhance users.yml to show warnings for users that could not be removed. - Update Duo Security role to use the correct repository and package names. - Improve login role to handle user UID and group assignments. - Create udev rules template for NVMe devices. - Add blacklist template for VFIO drivers. - Implement domain XML template for virtual machines with detailed configurations. - Update inventory to include vh-01.alexpires.dev in relevant groups. - Refactor cpu_power_monitor.py for improved error handling and modularity.
40 lines
848 B
YAML
40 lines
848 B
YAML
---
|
|
- name: Disable systemd ctrl-alt-del
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: ctrl-alt-del.target
|
|
masked: true
|
|
enabled: false
|
|
state: stopped
|
|
when: not ansible_os_family == "RedHat"
|
|
tags:
|
|
- ctrl-alt-del
|
|
- CCE-80785-9
|
|
- systemd
|
|
|
|
- name: Remove existing symlink for ctrl-alt-del.target if it exists
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: /etc/systemd/system/ctrl-alt-del.target
|
|
state: absent
|
|
when: ansible_os_family == "RedHat"
|
|
tags:
|
|
- ctrl-alt-del
|
|
- CCE-80785-9
|
|
- systemd
|
|
|
|
- name: Mask ctrl-alt-del.target to disable Ctrl+Alt+Del
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: ctrl-alt-del.target
|
|
masked: true
|
|
enabled: false
|
|
state: stopped
|
|
when: ansible_os_family == "RedHat"
|
|
changed_when: false
|
|
tags:
|
|
- ctrl-alt-del
|
|
- CCE-80785-9
|
|
- systemd
|
|
|