Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Environmental Cheminformatics
plan-b
Commits
728b7fb3
Commit
728b7fb3
authored
Jun 04, 2021
by
Todor Kondic
Browse files
vnc-tls-auth.yml: New playbook to generate VNC keys
parent
cbcce563
Changes
1
Hide whitespace changes
Inline
Side-by-side
vnc-tls-auth.yml
0 → 100644
View file @
728b7fb3
# This play is intended to (re)generate TLS keys for VNC
# software. Should not be rerun every time, because it overwrites old
# keys and thus prevent users from logging in, until they get new
# public keys.
-
hosts
:
all
become
:
True
become_method
:
sudo
remote_user
:
adamsmith
become_flags
:
"
-i"
vars_files
:
-
vars/users.yml
-
vars/passwords.yml
tasks
:
-
name
:
Create /etc/custom-vnc
file
:
path
:
"
/etc/custom-vnc"
state
:
directory
mode
:
0711
-
name
:
Get private ip.
shell
:
"
hostname
-I"
register
:
hip
-
name
:
Get hostname.
shell
:
"
hostname"
register
:
hname
-
name
:
Generate keys.
script
:
chdir
:
"
/etc/custom-vnc"
cmd
:
"
files/etc/gencert
{{
hname.stdout
}}
{{
hip.stdout
}}"
-
name
:
Get keys.
fetch
:
flat
:
yes
src
:
"
/etc/custom-vnc/vnc.pub.pem"
dest
:
"
pubkeys/{{
hname.stdout
}}.vnc.pub.pem"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment