Skip to content

Commit

Permalink
Fix missing file mode (risky-file-permissions) (kubernetes-sigs#7959)
Browse files Browse the repository at this point in the history
* Fix missing file mode (risky-file-permissions)

Found this using ansible-lint.

Signed-off-by: Bryan Hundven <[email protected]>

* Fix another missing file mode (risky-file-permissions)

This one fixes `/etc/crio/config.json`

Signed-off-by: Bryan Hundven <[email protected]>
  • Loading branch information
bhundven authored and LuckySB committed Oct 23, 2021
1 parent b6e10e4 commit 8687c14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/bootstrap-os/tasks/bootstrap-centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
section: "extras"
option: "{{ item.option }}"
value: "{{ item.value }}"
mode: 0644
with_items:
- { option: "name", value: "CentOS-{{ ansible_distribution_major_version }} - Extras" }
- { option: "enabled", value: "1" }
Expand Down
1 change: 1 addition & 0 deletions roles/container-engine/cri-o/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
template:
src: config.json.j2
dest: /etc/crio/config.json
mode: 0644
register: reg_auth_install

- name: Add skopeo pkg to install
Expand Down

0 comments on commit 8687c14

Please sign in to comment.