zsk-poznan / zastepstwa

Web app for displaying substitute teachers
GNU General Public License v3.0
8 stars 3 forks source link

Set static IP #64

Open pniedzwiedzinski opened 4 years ago

pniedzwiedzinski commented 4 years ago

Add to ansible step that will set static IP in raspbian.

On raspbian we can set static IP with dhcpcd

interface eth0
static ip_address=192.168.220.38/24
static routers=192.168.220.1

So we need to create a configuration file that will be then copied to /etc/dhcpcd.conf and then the dhcpcd service will be restarted.