We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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...
The text was updated successfully, but these errors were encountered:
Haven't used this role yet, but have you tried:
scripts: postrotate: chown app:app /mnt/log/test/*.log && chmod 0644 /mnt/log/test/*.log
Sorry, something went wrong.
No branches or pull requests
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.
If I run the above, only the chmod line is applied when the playbook is run...
The text was updated successfully, but these errors were encountered: