Add bash completion

This commit is contained in:
Paul 2020-11-09 16:58:31 +01:00
parent e5adc9a528
commit 21a2cb3c52
2 changed files with 10 additions and 0 deletions

View File

@ -18,3 +18,8 @@
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
dest: "{{ docker_compose_path }}"
mode: 0755
- name: Install bash completion for docker-compose
get_url:
url: https://raw.githubusercontent.com/docker/compose/{{ docker_compose_version }}/contrib/completion/bash/docker-compose
dest: /etc/bash_completion.d/docker-compose

View File

@ -20,6 +20,11 @@
- name: Ensure handlers are notified now to avoid firewall conflicts.
meta: flush_handlers
- name: Install bash completion for docker
get_url:
url: https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker
dest: /etc/bash_completion.d/docker.sh
- include_tasks: docker-compose.yml
when: docker_install_compose | bool