1
0
Fork 0
Ansible files for managing classroom machines at GJK.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emil Miler 89d4ca8986 Disable sleep on inactivity 12 months ago
files Disable sleep on inactivity 12 months ago
group_vars Initial commit 1 year ago
ansible.cfg Initial commit 1 year ago
hosts Initial commit 1 year ago
readme.md Add readme 1 year ago
reboot.yaml Initial commit 1 year ago
setup.yaml Simpler service handling 1 year ago
shudown.yaml Initial commit 1 year ago

readme.md

Ansible files for managing classroom machines at GJK.

There are two classrooms, POV and POM. All machines are running Void Linux with Gnome in dual-boot with Windows.

GDM configuration can be found at https://help.gnome.org/admin/system-admin-guide/stable/index.html.en.

New client installation

There are several differences in the hardware. System installation is usually done in EFI, though MBR still exists on older machines in POV.

  • Install Void
  • Update xbps
  • Install python3
  • Import your SSH key to /root/.ssh/authorized_keys

Void has sshd enabled by default as well as having prohibit-password set for root. Post-installation setup can be automated using a script or USB keyboard injector.

Running a playbook

ansible-playbook setup.yaml
ansible-playbook -l teachers setup.yaml
ansible-playbook --key-file ~/.ssh/keys/gjk-ansible setup.yaml

SSH configuration

You should setup your ssh to avoid unnecessary settings when running a playbook, for example:

Host VU* MU*
	User root
	IdentityFile ~/.ssh/keys/gjk-ansible
	StrictHostKeyChecking no
	UserKnownHostsFile=/dev/null