conf added

This commit is contained in:
ladislav.dusa
2024-12-11 16:35:32 +01:00
parent afc7817a81
commit 43dc4a8009
11 changed files with 565 additions and 0 deletions

24
roles/vnc_server/tasks/main.yml Executable file
View File

@ -0,0 +1,24 @@
- name: Install vnc packages
ansible.builtin.apt:
name:
- tigervnc-standalone-server
- tigervnc-common
update_cache: yes
- name: Creating a file with content
copy:
dest: "/home/jd/.vnc/config"
content: |
session=cinnamon
geometry=1200x721
localhost
alwaysshared
- name: Reconfigure zabbix agent Server
ansible.builtin.lineinfile:
path: "/etc/tigervnc/vncserver.users"
regexp: "^:1=jd"
line: ":1=jd"
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"