{{% if product in ["rhel7", "ol7"] %}} {{% set audisp_conf_file = "/audispd.conf" %}} {{% else %}} {{% set audisp_conf_file = "/auditd.conf" %}} {{% endif %}}

# Set type of computer node name logging in audit logs

multi_platform_all Ensure 'name_format' is configured with value 'hostname|fdq|numeric' in {{{ audisp_conf_path + audisp_conf_file }}} {{{ audisp_conf_path + audisp_conf_file }}} ^[ \t]*(?i)name_format(?-i)[ \t]*=[ \t]*(.+?)[ \t]*(?:$|#) 1 (?i)