diff options
Diffstat (limited to 'roles/containerd/tasks/main.yml')
-rw-r--r-- | roles/containerd/tasks/main.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/roles/containerd/tasks/main.yml b/roles/containerd/tasks/main.yml index ab23bd96..b6a8d997 100644 --- a/roles/containerd/tasks/main.yml +++ b/roles/containerd/tasks/main.yml @@ -1,10 +1,17 @@ --- - name: install containerd config when: containerd_config is defined - copy: - content: "{{ containerd_config | to_toml }}\n" - dest: /etc/containerd/config.toml - notify: restart containerd + block: + - name: create containerd config directory + file: + name: /etc/containerd + state: directory + + - name: install containerd config + copy: + content: "{{ containerd_config | to_toml }}\n" + dest: /etc/containerd/config.toml + notify: restart containerd - name: prepare storage volume for /var/lib/containerd when: containerd_storage is defined |