I am trying to fix all the linting issues for the openshift playbooks, and came across this one. Any ideas on best practise to fix this?
WARNING Listing 1 violation(s) that are fatal risky-file-permissions: File permissions unset or incorrect. playbooks/openshift-apps/application-monitoring.yml:30 Task/Handler: Copy files
Metadata Update from @phsmoura: - Issue priority set to: Waiting on Assignee (was: Needs Review) - Issue tagged with: low-gain, low-trouble, ops
Just add "mode=0644" (or "mode=0o644" for new style) at the end of the copy line.
You also need to have the permissions in quotes, otherwise you will hit another error https://ansible.readthedocs.io/projects/lint/rules/risky-octal/
So the correct is mode="0644". I usually first check the current permissions of the file on the system.
mode="0644"
Yeah. So, shall we close this? Or did we need anything further here?
Let's close it.
Metadata Update from @zlopez: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.