Update vnc.yml

This commit is contained in:
qiaofeng1227 2022-11-16 09:28:18 +08:00 committed by GitHub
parent 9eaa3fda77
commit 925fcaf303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,20 +9,6 @@
apt:
name: tightvncserver
when: ansible_os_family == "Debian"
- name: Create a random password for VNC
set_fact: temp_password="{{ lookup('password', '/tmp/passwordfile length=8 chars=digits') }}"
- debug:
msg: Testing VNC password is {{ temp_password }}
- name: Configure vncserver password
expect:
command: vncpasswd
responses:
"Password": "{{temp_password}}"
"Verify": "{{temp_password}}"
"view-only": "n"
#2 Configure VNC
- name: Copy vncserver.service(when system_user=root)