Bugfix registry

This commit is contained in:
Xan Manning 2021-01-02 16:22:28 +00:00
parent 6d1a5f812b
commit a2e035cd1c
2 changed files with 2 additions and 1 deletions

View File

@ -7,4 +7,5 @@
mode: "{{ directory.mode | default(0755) }}"
become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}"
when: directory.path is defined
and directory.path | length > 0
and directory.path != omit

View File

@ -102,7 +102,7 @@ k3s_ensure_directories_exist:
- name: Default local storage path
path: "{{ k3s_runtime_config['default-local-storage-path'] | default(omit) }}"
- name: Private registry config file
path: "{{ k3s_runtime_config['private-registry'] | default(omit) }}"
path: "{{ (k3s_runtime_config['private-registry'] | default(omit)) | dirname }}"
# Config items that should not appear in k3s_server or k3s_agent
k3s_config_exclude: