updated readme

This commit is contained in:
xpk 2019-01-22 17:15:28 +08:00
parent 7d75f4474f
commit 239ab69b34
2 changed files with 11 additions and 1 deletions

View File

@ -2,4 +2,7 @@
URL: https://xpk.headdesk.me/git/xpk/role.vncserver URL: https://xpk.headdesk.me/git/xpk/role.vncserver
## Required variables ## Required variables
- vnc.user Please set the ```vncuser``` in your ansible inventory or playbook. The vncserver service will be started by this user.
## Tested on
- RHEL7

View File

@ -32,6 +32,7 @@
- name: Create xstartup file - name: Create xstartup file
copy: copy:
dest: "~{{vncuser}}/.vnc/xstartup" dest: "~{{vncuser}}/.vnc/xstartup"
mode: 0755
content: | content: |
#!/bin/bash #!/bin/bash
# Uncomment the following two lines for normal desktop: # Uncomment the following two lines for normal desktop:
@ -82,6 +83,12 @@
state: started state: started
enabled: yes enabled: yes
- name: Disable firewalld
service:
name: firewalld
state: stopped
enabled: no
- name: Display vncpass - name: Display vncpass
debug: debug:
var: vncpass var: vncpass