Skip to content

Instantly share code, notes, and snippets.

@esc
Created September 3, 2020 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esc/20ed2b0fea672aa2bda3f3515054b82d to your computer and use it in GitHub Desktop.
Save esc/20ed2b0fea672aa2bda3f3515054b82d to your computer and use it in GitHub Desktop.
---
- name: Install python/pip related packages
apt: name={{ item }} state=present
with_items:
- python3-pip
- python3-venv
- libffi-dev
- libssl-dev
- pip:
name: docker-compose
virtualenv_command: python3 -m venv
virtualenv: /opt/docker-compose-venv
- name: Create symbolic link for docker-compose
file:
src: "/opt/docker-compose-venv/bin/docker-compose"
dest: "/usr/local/bin/docker-compose"
state: link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment