Update vnc.yml

This commit is contained in:
qiaofeng1227 2022-11-16 10:20:00 +08:00 committed by GitHub
parent 3d7e384f14
commit 4d4a5c0c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,21 @@
name: tightvncserver
when: ansible_os_family == "Debian"
- set_fact:
ansible_python_interpreter: "/usr/bin/python3"
- name: install expect
yum:
name: expect
state: latest
when: ansible_os_family == "RedHat"
- name: install expect for ubuntu
apt:
name: expect
state: latest
when: ansible_os_family == "Debian"
- name: copy bt install script
copy: src=bt.exp dest=/root/bt.exp mode=0644
- name: Create a random password for VNC
set_fact: temp_password="{{ lookup('password', '/tmp/passwordfile length=8 chars=digits') }}"