From 4c6a4f120c0d7d1bffd4b64d944180cd88fd95be Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Mon, 18 Dec 2023 14:03:34 -0800 Subject: [PATCH] Add tab completion, path modifications --- .../roles/delphix-platform/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml b/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml index 1df73c40..a712dc18 100644 --- a/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml +++ b/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml @@ -698,3 +698,19 @@ when: - variant == "internal-buildserver" - not ansible_is_chroot + +- name: Add systemctl bash completion + copy: + dest: "/etc/bash_completion.d/systemctl" + content: | + if [[ -r /usr/share/bash-completion/completions/systemctl ]]; then + . /usr/share/bash-completion/completions/systemctl && complete -F _systemctl systemctl + fi + +- name: Source bash completion + blockinfile: + dest: "/export/home/delphix/.bashrc" + block: | + . /etc/bash_completion.d/systemctl + . /etc/bash_completion.d/zfs + PATH=$PATH:/opt/delphix/server/bin \ No newline at end of file