File tree Expand file tree Collapse file tree
roles/container-engine/containerd/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 with_dict : " {{ containerd_base_runtime_specs | default({}) }}"
6565 notify : Restart containerd
6666
67+ # IAN: This is Claude's attempted fix
68+ - name : Containerd | Check if config file exists
69+ stat :
70+ path : " {{ containerd_cfg_dir }}/config.toml"
71+ register : config_stat
72+
6773- name : Containerd | Copy containerd config file
6874 template :
6975 src : " {{ 'config.toml.j2' if containerd_version is version('2.0.0', '>=') else 'config-v1.toml.j2' }}"
7076 dest : " {{ containerd_cfg_dir }}/config.toml"
7177 owner : " root"
7278 mode : " 0640"
7379 notify : Restart containerd
74- vars :
75- ansible_stat : " {{ lookup('ansible.builtin.stat', containerd_cfg_dir + '/config.toml') }}"
7680 when :
7781 # Don't run during simulation/dry-run mode
7882 - not ansible_check_mode
7983 # AND either the config file is missing OR this host is marked for forced updates
80- - not ansible_stat .stat.exists or inventory_hostname in force_write_containerd_config
84+ - not config_stat .stat.exists or inventory_hostname in force_write_containerd_config
8185
8286- name : Containerd | Configure containerd registries
8387 block :
You can’t perform that action at this time.
0 commit comments