Ansible_workstation/tasks/sudo.yml

25 lines
416 B
YAML

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