From 26d9ac41d834b3d416187bfa4d97deea43419071 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 13 Jan 2022 10:24:42 +0000 Subject: [PATCH] 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 --- playbooks/utility-install.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/utility-install.yml b/playbooks/utility-install.yml index ebd0da0253..46d96f1e37 100644 --- a/playbooks/utility-install.yml +++ b/playbooks/utility-install.yml @@ -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