Ensure bash completions directory is present

This is not present by default on debian/ubuntu and was only created
as a side effect of installing other packages (such as git). Cleaning
up these package installs makes creation of the bash completions fail
as the destination directory is absent.

Change-Id: I945d117cc2b1545b31efc921188950b1dd9fe509
This commit is contained in:
Jonathan Rosser 2022-01-13 10:24:42 +00:00
parent 39627f5361
commit 26d9ac41d8
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,13 @@
tags:
- utility
handlers:
- name: Ensure bash completions directory is present
file:
path: "/etc/bash_completion.d"
state: "directory"
mode: "0755"
listen:
- "venv changed"
- name: Create openstack client bash_completion script
shell: >-
openstack complete > /etc/bash_completion.d/openstack_client