Skip to content

Instantly share code, notes, and snippets.

@yogeek
Created January 5, 2018 19:20
Show Gist options
  • Save yogeek/30341d4dd81ba8275844d3e738ae267a to your computer and use it in GitHub Desktop.
Save yogeek/30341d4dd81ba8275844d3e738ae267a to your computer and use it in GitHub Desktop.
Docker-Machine playbook
---
- hosts: localhost
vars:
docker_machine_version: v0.14.0
tasks:
- name: Install Docker Machine
get_url:
url: "https://github.com/docker/machine/releases/download/{{ docker_machine_version }}/docker-machine-linux-x86_64"
dest: /usr/local/bin/docker-machine
mode: 0755
- name: Install bash-completion
yum: name={{ item }}
with_items:
- bash-completion
- name: Install Docker Machine bash_completion
get_url:
url: "https://raw.githubusercontent.com/docker/machine/{{ docker_machine_version }}/contrib/completion/bash/{{ item }}"
dest: /etc/bash_completion.d/{{ item }}
with_items:
- docker-machine-prompt.bash
- docker-machine-wrapper.bash
- docker-machine.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment