mcgrof.fix_dhcp_hack

fix_dhcp_hack

=============

Sometimes, on certain Linux distributions, your network interfaces might not get DHCP assigned to them due to bugs. This Ansible role aims to solve this issue for any distribution, but each one may have its own specific solution.

Currently, the only distribution with this problem is Debian, so this role won't do anything for other distributions.

Known Issues

Debian

As of August 16, 2019, Debian testing does not update the /etc/network/interfaces file correctly. This means that after a reboot, you won't receive a DHCP lease. It's strange because, initially, even though the enp6s0 network interface starts up without an entry in /etc/network/interfaces, you still get DHCP. However, after rebooting, you won't be able to SSH into the system because DHCP won't be assigned to the interface.

Requirements

None.

Role Variables

  • enable_dhcp_hack: This is set to false by default. Change it to true in your project only if you understand and have verified that you can use this.

Dependencies

None.

Example Playbook

Here is an example of how to use this role in a playbook:

---
- hosts: all
  roles:
    - role: mcgrof.fix_dhcp_hack

For more examples, check out some projects that use this role, such as fw-kdevops, kdevops, or oscheck.

License

GPLv2

Informazioni sul progetto

Configure target hosts with your preferred development hacks

Installa
ansible-galaxy install mcgrof.fix_dhcp_hack
Licenza
Unknown
Download
117
Proprietario
https://www.do-not-panic.com/p/hacking.html