spark/roles/golang/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
332 B
YAML

---
- name: Install go
pacman: name=go state=present
- name: Create system go group
group: name=golang state=present
- name: Add user to system golang group
user: name={{ user.name }} groups=golang append=yes
tags:
- user
- name: Create system go dir
file: path=/usr/local/go state=directory group=golang mode=0775