--- - name: Install ThinLinc repository ansible.builtin.yum_repository: name: thinlinc baseurl: "https://mirrors.foo.sh/thinlinc/{{ ansible_architecture }}" description: Cendio Thinlinc gpgcheck: false enabled: true - name: Intall packages ansible.builtin.package: name: thinlinc-client state: installed - name: Set default server name ansible.builtin.lineinfile: path: /opt/thinlinc/etc/tlclient.conf regexp: '^SERVER_NAME=' line: "SERVER_NAME=shell.foo.sh" - name: Disable fullscreen mode ansible.builtin.lineinfile: path: /opt/thinlinc/etc/tlclient.conf regexp: '^{{ item }}=' line: "{{ item }}=0" with_items: - FULL_SCREEN_MODE - FULL_SCREEN_ALL_MONITORS - name: Set default screen size ansible.builtin.lineinfile: path: /opt/thinlinc/etc/tlclient.conf regexp: '^SCREEN_SIZE_SELECTION=' line: "SCREEN_SIZE_SELECTION=2" - name: Use kerberos authentication ansible.builtin.lineinfile: path: /opt/thinlinc/etc/tlclient.conf regexp: '^AUTHENTICATION_METHOD=' line: "AUTHENTICATION_METHOD=kerberos" when: kerberos_realm is defined - name: Check if global known_hosts is fond ansible.builtin.stat: path: /etc/ssh/ssh_known_hosts register: result check_mode: false - name: Link global known_hosts ansible.builtin.file: dest: /opt/thinlinc/etc/ssh_known_hosts src: /etc/ssh/ssh_known_hosts state: link owner: root group: "{{ ansible_wheel }}" follow: false force: true when: result.stat.exists