Ansible job auditd failed in Database Server and Server when run Frappe Press in Docker, ECS and K8s

Hi everyone, currently I’m hosting Frappe Press in 3 environments Docker, ECS, and K8s
using images frappe/bench:v5.27.0 and ubuntu:22.04

The issue comes from Setup Server in both “Server” and “Database Server”

When running Ansible files in audit, it throws an error it step “systemctl restart auditd”

Error “Job for auditd.service failed because the control process exited with error code.
See “systemctl status auditd.service” and “journalctl -xeu auditd.service” for details.”

After I go through for more details, I recognise that auditd.service cannot run inside Kubernetes pods, ECS containers, or Docker containers because
Ansible tasks require deep Host/OS access

Many tasks in Ansible require:

  • systemd service management

  • kernel-level configurations

  • OS-level file system modification

Could you please give me some solutions that I could run Ansible tasks auditd in Docker, ECS or K8S