Ensure apt sources.list.d directory exists.

Systems built from minimal images may not have this directory
present, so ensure that it exists.

Change-Id: I7e5932f20acbbf516ada9ebec4eb0db7781fbfb8
This commit is contained in:
Jonathan Rosser 2024-09-24 09:10:21 +01:00
parent 1aef1f258c
commit a131f1fe3f

View File

@ -15,6 +15,14 @@
# APT configuration tasks that apply on all nodes.
- name: Ensure /etc/apt/sources.list.d exists
file:
path: /etc/apt/sources.list.d
state: directory
owner: root
group: root
mode: '0755'
- name: Validate repo config is deb822 format
vars:
_repo_check: "{{ openstack_hosts_package_repos | selectattr('repo', 'defined') | map(attribute='repo') }}"