spark/roles/virtualenv/tasks/main.yml
Pig Monkey 6b2eab7427 add the user tag whenever modifying the user
Running the playbook with --tags=user should trigger all user-modifying
tasks, not just the initial setup.
2018-03-26 11:26:43 -07:00

14 lines
399 B
YAML

---
- name: Install virtualenv and virtualenvwrapper
pacman: name=python-virtualenvwrapper state=present
- name: Create system environment group
group: name=env state=present
- name: Add user to system environment group
user: name={{ user.name }} groups=env append=yes
tags:
- user
- name: Create system environment dir
file: path=/usr/local/env state=directory group=env mode=2775