Skip to content

aleksei-bulgak/just-for-fun

Repository files navigation

This is experiment to write simple ansible script for Raspberry Pi.

Idea of this project was to simplify raspberry Pi OS reinstallation. From time to time some team members switch it off just by turn off power and in some cases this causes OS crashes and corruptions.

And each time to configure it again was a real pain.

As a result we wrote simple ansible script that:

  • installs chrome
  • disables option that switch off a screen when mouse is in inactive state
  • creates cron job that switches off raspberry at 7PM

Issues

  • By default Raspberry does not have any Default Gateway configuration. Run this command sudo route add default gw <gateway ip address> to set it up.
sudo route add default gw 172.30.0.20
  • Also I suggest to configure ethernet in the following way:

172.30.0.20 is our internal default gateway

To run this playbook you need to execute command

ansible-playbook -i "hosts" -c local -t <TAGS> main.yaml 

ansible-playbook -i "localhost," -c local -t <TAGS> main.yaml 

About

This repo was created to automate raspberry configuration at work that is used to display some application metrics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages