mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
fix: with_item to with_dict (#9729)
Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
This commit is contained in:
@@ -117,13 +117,12 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
recurse: true
|
||||
with_items: "{{ containerd_insecure_registries }}"
|
||||
with_dict: "{{ containerd_insecure_registries }}"
|
||||
when: containerd_insecure_registries is defined
|
||||
|
||||
- name: containerd | Write hosts.toml file
|
||||
blockinfile:
|
||||
path: "{{ containerd_cfg_dir }}/certs.d/{{ item.key }}/hosts.toml"
|
||||
owner: "root"
|
||||
mode: 0640
|
||||
create: true
|
||||
block: |
|
||||
@@ -131,7 +130,7 @@
|
||||
[host."{{ item.value }}"]
|
||||
capabilities = ["pull", "resolve", "push"]
|
||||
skip_verify = true
|
||||
with_items: "{{ containerd_insecure_registries }}"
|
||||
with_dict: "{{ containerd_insecure_registries }}"
|
||||
when: containerd_insecure_registries is defined
|
||||
|
||||
# you can sometimes end up in a state where everything is installed
|
||||
|
||||
Reference in New Issue
Block a user