thinlinc_server: Convert modules to use FQCN

This commit is contained in:
Timo Makinen 2022-04-14 13:40:24 +00:00
parent d1c80cf452
commit 4c10fd326e
2 changed files with 16 additions and 16 deletions

View file

@ -1,10 +1,10 @@
---
- name: restart tlwebaccess
service:
ansible.builtin.service:
name: tlwebaccess
state: restarted
- name: restart vsmagent
service:
ansible.builtin.service:
name: vsmagent
state: restarted

View file

@ -1,6 +1,6 @@
---
- name: install prequisites
package:
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
@ -9,7 +9,7 @@
- python3-gobject
- name: install thinlinc repository
yum_repository:
ansible.builtin.yum_repository:
name: thinlinc
baseurl: "https://mirrors.foo.sh/thinlinc/{{ ansible_architecture }}"
description: Cendio Thinlinc
@ -17,7 +17,7 @@
enabled: true
- name: install packages
package:
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
@ -30,12 +30,12 @@
- thinlinc-webaccess
- name: run thinlinc setup
script:
ansible.builtin.script:
cmd: tl-setup.local.sh
creates: /var/log/tlsetup.log
- name: disable polkit auth dialogs during login
copy:
ansible.builtin.copy:
dest: /etc/polkit-1/rules.d/40-thinlinc-no-auth-dialogs.rules
src: 40-thinlinc-no-auth-dialogs.rules
mode: 0644
@ -43,26 +43,26 @@
group: "{{ ansible_wheel }}"
- name: use gnome desktop automatically
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/profiles.hconf
regexp: "^order=.*"
line: order=gnome
- name: disable introduction message
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/profiles.hconf
regexp: "^show_intro=.*"
line: show_intro=false
- name: configure vsmagent hostname
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/vsmagent.hconf
regexp: "^agent_hostname=.*"
line: "agent_hostname={{ inventory_hostname }}"
notify: restart vsmagent
- name: copy private key
copy:
ansible.builtin.copy:
dest: /opt/thinlinc/etc/tlwebaccess/server.key
src: "{{ item }}"
mode: 0600
@ -75,7 +75,7 @@
notify: restart tlwebaccess
- name: copy certificate
copy:
ansible.builtin.copy:
dest: /opt/thinlinc/etc/tlwebaccess/server.crt
src: "{{ item }}"
mode: 0644
@ -89,28 +89,28 @@
notify: restart tlwebaccess
- name: configure webaccess port
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/webaccess.hconf
regexp: "^listen_port=.*"
line: "listen_port=443"
notify: restart tlwebaccess
- name: configure webaccess url
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/webaccess.hconf
regexp: "^login_page=.*"
line: "login_page=https://{{ inventory_hostname }}/"
notify: restart tlwebaccess
- name: configure webaccess tls settings
lineinfile:
ansible.builtin.lineinfile:
path: /opt/thinlinc/etc/conf.d/webaccess.hconf
regexp: "^gnutls_priority=.*"
line: "gnutls_priority=SECURE256"
notify: restart tlwebaccess
- name: start thinlinc services
service:
ansible.builtin.service:
name: "{{ item }}"
state: started
enabled: true