2022-01-08 03:04:42 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Enable contrib repositories
|
|
|
|
apt_repository:
|
|
|
|
repo: deb http://deb.debian.org/debian {{ ansible_distribution_release }} contrib
|
|
|
|
|
|
|
|
- name: Add i386 Architecture
|
|
|
|
command: dpkg --add-architecture i386
|
|
|
|
args:
|
|
|
|
creates: /var/lib/dpkg/arch
|
|
|
|
when: ansible_architecture != 'i386'
|
|
|
|
register: archrc
|
|
|
|
|
|
|
|
- name: Update APT Cache for i386
|
|
|
|
apt:
|
|
|
|
update_cache: true
|
|
|
|
when: archrc is defined and archrc.changed
|
|
|
|
|
|
|
|
- name: Install Estlcam dependencies
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- winetricks
|
|
|
|
- wine32
|
|
|
|
- xfwm4
|
|
|
|
|
|
|
|
- name: Create Estlcam group
|
2022-01-09 18:19:16 +01:00
|
|
|
group: name={{ xrdp_applications.Estlcam.group }}
|
2022-01-08 03:04:42 +01:00
|
|
|
|
|
|
|
- name: Create Estlcam user
|
2022-01-09 18:19:16 +01:00
|
|
|
user: name={{ xrdp_applications.Estlcam.user }} password={{ xrdp_applications.Estlcam.pass | password_hash('sha512', xrdp_applications.Estlcam.salt) }} home=/home/{{ xrdp_applications.Estlcam.user }} group={{ xrdp_applications.Estlcam.group }}
|
2022-01-08 03:04:42 +01:00
|
|
|
|
|
|
|
- name: Create Estlcam .xsession
|
2022-01-09 18:19:16 +01:00
|
|
|
template: src=estlcam_xsession.j2 dest=/home/{{ xrdp_applications.Estlcam.user }}/.xsession
|
2022-01-08 03:04:42 +01:00
|
|
|
|
|
|
|
- name: Create Estlcam data directory
|
2022-01-09 18:19:16 +01:00
|
|
|
file: path=/home/{{ xrdp_applications.Estlcam.user }}/data state=directory mode=0755 owner={{ xrdp_applications.Estlcam.user }} group={{ xrdp_applications.Estlcam.group }}
|
2022-01-09 16:37:41 +01:00
|
|
|
|
|
|
|
- name: Create info directory
|
|
|
|
file:
|
2022-01-09 18:19:16 +01:00
|
|
|
path: "/home/{{ xrdp_applications.Estlcam.user }}/data/{{ info_folder_name }}"
|
2022-01-09 16:37:41 +01:00
|
|
|
state: directory
|
|
|
|
mode: 0444
|
|
|
|
owner: root
|
|
|
|
group: root
|