thinlinc-server: Initial version of role
This commit is contained in:
parent
4901a345c5
commit
dcb4e2a0aa
2 changed files with 65 additions and 0 deletions
22
roles/thinlinc-server/files/tl-setup.local.sh
Executable file
22
roles/thinlinc-server/files/tl-setup.local.sh
Executable 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
|
43
roles/thinlinc-server/tasks/main.yml
Normal file
43
roles/thinlinc-server/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue