-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Labels
@guitaoliu
Description
Description
audit 3.1.5-1.el9 no longer has initscripts-service as a dependency.
https://centos.pkgs.org/9-stream/centos-baseos-x86_64/audit-3.1.5-1.el9.x86_64.rpm.html
https://centos.pkgs.org/9-stream/centos-baseos-x86_64/audit-3.1.2-2.el9.x86_64.rpm.html
https://centos.pkgs.org/9-stream/centos-baseos-x86_64/initscripts-service-10.11.8-4.el9.noarch.rpm.html
The os_hardening handler Restart auditd via service task is broken as there is no service binary (provided by initscripts-service).
fatal: [default]: FAILED! => {"changed": false, "cmd": "service auditd restart", "msg": "[Errno 2] No such file or directory: b'service'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
OS / Environment
Redhat Linux 9.4
Ansible Version
ansible [core 2.15.12] python version = 3.9.19 (main, Sep 11 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3) jinja version = 3.1.2 libyaml = True
Collection Version
- name: devsec.hardening
version: ">=10.1.0,<10.2.0"