spark/roles/base/tasks/sudo.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

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