manala.dhcp

#######################################################################################################

:exclamation: DEPRECATION :exclamation:

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Dhcp Build Status

:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:

This role will deal with the setup of ISC DHCP Server.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.dhcp

Using ansible galaxy requirements file:

- src: manala.dhcp

Role Handlers

Name Type Description
dhcp restart Service Restart dhcp service

Role Variables

Name Default Type Description
manala_dhcp_install_packages ~ Array Dependency packages to install
manala_dhcp_install_packages_default ['isc-dhcp-server'] Array Default dependency packages to install
manala_dhcp_interfaces [] Array Network interfaces
manala_dhcp_config_file '/etc/dhcp/dhcpd.conf' String Configuration destination path
manala_dhcp_config_template ~ String Configuration template
manala_dhcp_config_content ~ String Configuration content

Configuration example

Interfaces

manala_dhcp_interfaces:
  - "{{ ansible_default_ipv4.interface }}"

Config

Config file content could be set by either manala_dhcp_config_template or manala_dhcp_config_content parameter.

manala_dhcp_config_template: dhcp/config.j2
manala_dhcp_config_content: |
  subnet {{ ansible_default_ipv4.network }} netmask {{ ansible_default_ipv4.netmask }} {
  }

Example playbook

- hosts: servers
  roles:
    - { role: manala.dhcp }

Licence

MIT

Author information

Manala (http://www.manala.io/)

About

Handle isc dhcp server

Install
ansible-galaxy install manala.dhcp
GitHub repository
License
Unknown
Downloads
911
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.