#12283 risky-file-permissions: File permissions unset or incorrect. [openshift playbooks linting]
Closed: Fixed 3 months ago by zlopez. Opened 4 months ago by ryanlerch.

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

4 months ago

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.

Yeah. So, shall we close this? Or did we need anything further here?

Metadata Update from @zlopez:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 months ago

Log in to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog