Skip to content

Commit

Permalink
fix: with_item to with_dict
Browse files Browse the repository at this point in the history
Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
  • Loading branch information
lengrongfu committed Jan 29, 2023
1 parent 8523f52 commit b211916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/container-engine/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
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
Expand All @@ -131,7 +131,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
Expand Down

0 comments on commit b211916

Please sign in to comment.