From bd4a51d1cb15048cf8daa8c38b166065c91ec22c Mon Sep 17 00:00:00 2001 From: Vignesh Goutham Ganesh Date: Tue, 11 Jan 2022 21:05:13 -0800 Subject: [PATCH 03/18] Create /etc/pki/tls/certs dir as part of image-builds Signed-off-by: Vignesh Goutham Ganesh --- images/capi/ansible/roles/sysprep/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/images/capi/ansible/roles/sysprep/tasks/main.yml b/images/capi/ansible/roles/sysprep/tasks/main.yml index 04a07ad7f..0114e934d 100644 --- a/images/capi/ansible/roles/sysprep/tasks/main.yml +++ b/images/capi/ansible/roles/sysprep/tasks/main.yml @@ -24,6 +24,15 @@ - import_tasks: photon.yml when: ansible_os_family == "VMware Photon OS" +- name: Get stats of the /etc/pki folder + ansible.builtin.stat: + path: /etc/pki + register: pki + +- name: Ensures /etc/pki/tls/certs dir exists + file: path=/etc/pki/tls/certs state=directory + when: pki.stat.isdir is defined and pki.stat.isdir + - name: Remove containerd http proxy conf file if needed file: path: /etc/systemd/system/containerd.service.d/http-proxy.conf -- 2.39.1