mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
Running the playbook with --tags=user should trigger all user-modifying tasks, not just the initial setup.
14 lines
332 B
YAML
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
|