thinlinc-server: Initial version of role

This commit is contained in:
Timo Makinen 2020-09-14 06:24:50 +00:00
parent 4901a345c5
commit dcb4e2a0aa
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
cat <<EOF > /root/tl-setup.answer
install-pygtk=yes
email-address=adm@foo.sh
setup-selinux=yes
setup-nearest=no
server-type=master
setup-firewall=no
install-python-ldap=no
setup-apparmor=no
missing-answer=ask
install-nfs=no
setup-thinlocal=no
install-sshd=no
tlwebadm-password=$(dd if=/dev/urandom count=1 2> /dev/null | base64 | tail -n 1 | cut -c 1-20)
accept-eula=yes
migrate-conf=old
install-required-libs=yes
EOF
/opt/thinlinc/sbin/tl-setup -a /root/tl-setup.answer

View file

@ -0,0 +1,43 @@
---
- name: install prequisites
package:
name: "{{ item }}"
state: installed
with_items:
- python2
- name: install thinlinc repository
yum_repository:
name: thinlinc
baseurl: "https://mirrors.foo.sh/thinlinc/{{ ansible_architecture }}"
description: Cendio Thinlinc
gpgcheck: false
enabled: true
- name: install packages
package:
name: "{{ item }}"
state: installed
with_items:
- thinlinc-tladm
- thinlinc-tlmisc
- thinlinc-tlmisc-libs
- thinlinc-tlprinter
- thinlinc-vnc-server
- thinlinc-vsm
- thinlinc-webaccess
- name: run thinlinc setup
script:
cmd: tl-setup.local.sh
creates: /var/log/tlsetup.log
- name: start thinlinc services
service:
name: "{{ item }}"
state: started
enabled: true
with_items:
- tlwebadm.service
- vsmagent
- vsmserver