forked from infra/ansible
30 lines
859 B
YAML
30 lines
859 B
YAML
---
|
|
|
|
- include: xrdp.yml
|
|
- include: lightburn.yml
|
|
- include: estlcam.yml
|
|
- include: slicer.yml
|
|
- include: samba.yml
|
|
|
|
|
|
- name: Create tsadmin group
|
|
group: name={{ tsadmin_group }}
|
|
|
|
- name: Create tsadmin_user
|
|
user: name={{ tsadmin_user }} password={{ tsadmin_pass | password_hash('sha512', tsadmin_salt) }} home=/home/{{ tsadmin_user }} group={{ tsadmin_group }}
|
|
|
|
- name: Allow 'tsadmin_user' group to have passwordless sudo to other users
|
|
lineinfile:
|
|
dest: /etc/sudoers
|
|
state: present
|
|
regexp: '^{{ tsadmin_user }} ALL=({{ item }}) NOPASSWD: ALL'
|
|
line: '{{ tsadmin_user }} ALL=({{ item }}) NOPASSWD: ALL'
|
|
validate: visudo -cf %s
|
|
with_items:
|
|
- "{{ estlcam_user }}"
|
|
- "{{ lightburn_user }}"
|
|
- "{{ slicer_user }}"
|
|
|
|
- name: Create tsadmin_user .xsession
|
|
template: src=tsadmin_xsession.j2 dest=/home/{{ tsadmin_user }}/.xsession
|