Skip to content

[Feature] - Support for AppArmour & Logging enabled for default path #62

@codezninja

Description

@codezninja

Problem

When running this role on Debian 11.6 with logging enabled bind9_named_logging: True the role fails to reload the service since AppArmor only allows logging by default for bind9 to be in path /var/log/named. The default this role uses conflicts with AppArmor setting.

Workaround

Currently since this is a variable users can just set the logging path to /var/log/named.

Long term solution

But to be able to truly support any logging path the user wants it be nice to have a task that updates the AppArmour config file before reloading the service. See solution here.

If this is an acceptable solution I don't mind giving the PR a shot. Basically it'd be an sed in place agains't that AppArmour file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions