Skip to content

scripts, postrotate, multiple entries #33

Open
@tman77

Description

@tman77

I am trying to use this role to set the log owner and permissions, but I am using copytruncate, so I can't use the create directive.

Is there a way to do it in scripts, postrotate. When I tested, it only allows one entry for postrotate I believe because it is a dict object.

i.e.

scripts:
  postrotate: chown app:app /mnt/log/test/*.log
  postrotate: chmod 0644 /mnt/log/test/*.log

If I run the above, only the chmod line is applied when the playbook is run...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions