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
This commit is contained in:
Clark Boylan 2022-07-27 15:23:30 -07:00 committed by Ian Wienand
parent d5cef7827e
commit 33c2b4ff5f

View File

@ -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