Advertisement
yiorgos

vagrant, ansible_local and pip

Sep 17th, 2018
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.47 KB | None | 0 0
  1. ---
  2. - hosts: all
  3.   tasks:
  4.     - name: create the needed virtual environment and upgrade pip
  5.       pip:
  6.         chdir: /home/vagrant
  7.         virtualenv: work
  8.         virtualenv_command: /usr/bin/python3 -mvenv
  9.         name: pip
  10.         extra_args: --upgrade
  11.  
  12.     - name: now install the requirements
  13.       pip:
  14.         chdir: /home/vagrant
  15.         virtualenv: work
  16.         virtualenv_command: /usr/bin/python3 -mvenv
  17.         requirements: /vagrant/requirements.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement