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
changes/66/851266/3
Clark Boylan 4 months ago committed by Ian Wienand
parent d5cef7827e
commit 33c2b4ff5f
  1. 8
      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

Loading…
Cancel
Save