Skip to content
New issue

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

decrease permissions config.yaml and registries.yaml #165

Merged
merged 2 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/first_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dest: /etc/rancher/rke2/config.yaml
owner: root
group: root
mode: 0644
mode: 0600
register: config_file_is_changed

- name: Copy Containerd Registry Configuration file
Expand All @@ -28,7 +28,7 @@
dest: /etc/rancher/rke2/registries.yaml
owner: root
group: root
mode: 0644
mode: 0600
when: (rke2_custom_registry_mirrors | length > 0 or rke2_custom_registry_configs | length > 0)
register: config_file_is_changed

Expand Down
4 changes: 2 additions & 2 deletions tasks/remaining_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
dest: /etc/rancher/rke2/config.yaml
owner: root
group: root
mode: 0644
mode: 0600
register: config_file_is_changed

- name: Copy Containerd Registry Configuration file
Expand All @@ -33,7 +33,7 @@
dest: /etc/rancher/rke2/registries.yaml
owner: root
group: root
mode: 0644
mode: 0600
when: (rke2_custom_registry_mirrors | length > 0 or rke2_custom_registry_configs | length > 0)
register: config_file_is_changed

Expand Down
4 changes: 2 additions & 2 deletions tasks/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
dest: /etc/rancher/rke2/config.yaml
owner: root
group: root
mode: 0644
mode: 0600
register: config_file_is_changed

- name: Copy Containerd Registry Configuration file
Expand All @@ -23,7 +23,7 @@
dest: /etc/rancher/rke2/registries.yaml
owner: root
group: root
mode: 0644
mode: 0600
when: rke2_custom_registry_mirrors.0.endpoint | length > 0
register: config_file_is_changed

Expand Down