ansible/roles/thinlinc-server/tasks/main.yml

43 lines
865 B
YAML

---
- 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