Ansible_workstation/tasks/sudo.yml

19 lines
320 B
YAML

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