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 - name: restart tlwebaccess
service: ansible.builtin.service:
name: tlwebaccess name: tlwebaccess
state: restarted state: restarted
- name: restart vsmagent - name: restart vsmagent
service: ansible.builtin.service:
name: vsmagent name: vsmagent
state: restarted state: restarted

View file

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