- add a default password for vnc - plain text to be changed later. see

roles/vnc/tasks/main
- minor doc updates
This commit is contained in:
2023-06-23 15:04:12 -04:00
parent c1876eaef7
commit 0bc52ca16f
3 changed files with 33 additions and 5 deletions

View File

@@ -89,8 +89,10 @@ The Goal is to evenually be able to be a turnkey solution to spin up a "real" ne
* On each Pi
* log in with the username and password you used in the Imager utility
* Configure network
* The Raspberr Pi is configured for DHCP by default If your uCPE does not provide DHCP addresses, you will need to configure a staitc IP address by following the instructions at this site https://www.raspberrypi.com/documentation/computers/configuration.html#static-ip-addresses
* The Raspberry Pi is configured for DHCP by default If your uCPE does not provide DHCP addresses, you will need to configure a staitc IP address by following the instructions at this site https://www.raspberrypi.com/documentation/computers/configuration.html#static-ip-addresses
* Designate one of the Pi's to be the "main" device and do the following
* log in via SSH or via local keyboard and mouse
* if local, open a command prompt
* execute _**sudo apt install -y ansible sshpass git**_
* get a copy of repo (requies github account, comcast VPN access, and configured git credentials)
* execute _**cd dsfin-ansible**_

View File

@@ -20,4 +20,7 @@
# path: /home/'{{ def_username }}'/.xsession
# line: "lxsession -s Lubuntu -e LXDE"
# create: yes
- name: set vnc password
become: true
ansible.builtin.shell: echo "raspberry" | /usr/bin/vncpasswd -legacy -file /root/.vnc/config.d/vncserver-x11

View File

@@ -1,7 +1,30 @@
---
- hosts: all
tasks:
- name: print debug message
debug:
msg: "{{ ansible_lsb.id }}_{{ ansible_lsb.major_release }}"
vars_prompt:
- name: def_user
prompt: Enter username to use (ie. pi)
private: no
- name: def_pass
prompt: Enter password to use
private: yes
encrypt: sha512_crypt
confirm: yes
unsafe: yes
salt_size: 7
tasks:
- set_fact: def_username={{ def_user }}
no_log: true
- set_fact: def_password={{ def_pass }}
no_log:
- name:
ansible.posix.authorized_key:
user: "{{ def_username }}"
state: present
key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
- hosts: pi
roles:
- vnc