From 33c2b4ff5f466a93b27d701c64d088ca8e4cf885 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 27 Jul 2022 15:23:30 -0700 Subject: [PATCH] Ensure /etc/apt/sources.list.d exists Jammy nodes appear to lack the /etc/apt/sources.list.d dir by default. Ensure it exists in the install-docker role before we attempt to install a deb repo config to that directory for docker packages. Change-Id: I859d31ed116607ffa3d8db5bfd0b805d72dd70c0 --- playbooks/roles/install-docker/tasks/upstream.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/roles/install-docker/tasks/upstream.yaml b/playbooks/roles/install-docker/tasks/upstream.yaml index ca5463c3a1..c6232366a3 100644 --- a/playbooks/roles/install-docker/tasks/upstream.yaml +++ b/playbooks/roles/install-docker/tasks/upstream.yaml @@ -14,6 +14,14 @@ apt_key: data: "{{ ubuntu_gpg_key }}" +- name: Ensure /etc/apt/sources.list.d exists + file: + path: /etc/apt/sources.list.d + state: directory + owner: root + group: root + mode: '0755' + # TODO(mordred) We should add a proxy cache mirror for this - name: Add docker apt repo become: yes