Open pniedzwiedzinski opened 4 years ago
Add to ansible step that will set static IP in raspbian.
On raspbian we can set static IP with dhcpcd
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.
/etc/dhcpcd.conf
Add to ansible step that will set static IP in raspbian.
On raspbian we can set static IP with
dhcpcd
So we need to create a configuration file that will be then copied to
/etc/dhcpcd.conf
and then thedhcpcd
service will be restarted.