- 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:
@@ -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
|
* On each Pi
|
||||||
* log in with the username and password you used in the Imager utility
|
* log in with the username and password you used in the Imager utility
|
||||||
* Configure network
|
* 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
|
* 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**_
|
* execute _**sudo apt install -y ansible sshpass git**_
|
||||||
* get a copy of repo (requies github account, comcast VPN access, and configured git credentials)
|
* get a copy of repo (requies github account, comcast VPN access, and configured git credentials)
|
||||||
* execute _**cd dsfin-ansible**_
|
* execute _**cd dsfin-ansible**_
|
||||||
|
|||||||
@@ -20,4 +20,7 @@
|
|||||||
# path: /home/'{{ def_username }}'/.xsession
|
# path: /home/'{{ def_username }}'/.xsession
|
||||||
# line: "lxsession -s Lubuntu -e LXDE"
|
# line: "lxsession -s Lubuntu -e LXDE"
|
||||||
# create: yes
|
# create: yes
|
||||||
|
- name: set vnc password
|
||||||
|
become: true
|
||||||
|
ansible.builtin.shell: echo "raspberry" | /usr/bin/vncpasswd -legacy -file /root/.vnc/config.d/vncserver-x11
|
||||||
|
|
||||||
|
|||||||
31
test.yaml
31
test.yaml
@@ -1,7 +1,30 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
vars_prompt:
|
||||||
- name: print debug message
|
- name: def_user
|
||||||
debug:
|
prompt: Enter username to use (ie. pi)
|
||||||
msg: "{{ ansible_lsb.id }}_{{ ansible_lsb.major_release }}"
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user