mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-25 17:04:09 +00:00
Running the playbook with --tags=user should trigger all user-modifying tasks, not just the initial setup.
16 lines
325 B
YAML
16 lines
325 B
YAML
---
|
|
- name: Install sudo
|
|
pacman: name=sudo state=present
|
|
tags:
|
|
- sudo
|
|
|
|
- name: Add user to wheel group
|
|
user: name={{ user.name }} groups=wheel append=yes
|
|
tags:
|
|
- sudo
|
|
- user
|
|
|
|
- name: Copy sudo configuration
|
|
template: src=sudoers.j2 dest=/etc/sudoers mode=440 validate='visudo -cf %s'
|
|
tags:
|
|
- sudo
|