Skip to content

Instantly share code, notes, and snippets.

@esc
Created Sep 3, 2020
Embed
What would you like to do?
---
- 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