Ansible_workstation/tasks/sudo.yml
2018-08-22 21:19:32 +02:00

24 lines
376 B
YAML

---
- name: Install sudo
pacman:
name: sudo
state: present
- name: Configure sudoers
template:
src: files/sudoers
dest: /etc/sudoers
mode: 0440
- name: Create sudo group
group:
name: sudo
state: present
- name: Add local user to sudo group
user:
name: "{{ item }}"
groups: sudo
append: yes
with_items: '{{ deploy_users }}'