migrate server - from dhcp to static ip

29 views
Skip to first unread message

Fidel Dominguez-Valero

unread,
Sep 14, 2016, 1:52:11 PM9/14/16
to Ansible Project
There are any way to migrate the existing network configuration (IP, Netmask, Gateway) to static IP using ansible?

Kai Stian Olstad

unread,
Oct 9, 2016, 6:29:49 AM10/9/16
to ansible...@googlegroups.com
On 14. sep. 2016 00:04, Fidel Dominguez-Valero wrote:
> There are any way to migrate the existing network configuration (IP,
> Netmask, Gateway) to static IP using ansible?

Ansible don't have a module that do this.
But all the tools is available to configure it.

With facts you find the IP, netmask and gateway and with template module
or blockinfile module you can change the file for the static configuration.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages