Ansible role for installing python modules inside a new virtual env inside
/opt/<pkg-name>
. For packages like molecule[docker]
you can overwrite
the folder name with dir
var.
version
parameter may be set to latest
.
- hosts: servers
become: yes
roles:
- role: baztian.pip_venv
vars:
pkg: bump2version
version: 1.0.1
system_site_packages: yes
MIT