reallyenglish.dhclient

ansible-role-dhclient

A brief description of the role goes here.

Requirements

None

Role Variables

Variable Description Default
dhclient_config_file path to dhclient.conf(5) {{ __dhclient_config_file }}
dhclient_config array of configurations []
dhclient_service service name {{ __dhclient_service }}
dhclient_interface the interface on which dhclient is enabled ""

Debian

Variable Default
__dhclient_config_file /etc/dhcp/dhclient.conf

FreeBSD

Variable Default
__dhclient_config_file /etc/dhclient.conf
__dhclient_service dhclient

OpenBSD

Variable Default
__dhclient_config_file /etc/dhclient.conf
__dhclient_service dhclient

RedHat

Variable Default
__dhclient_config_file /etc/dhcp/dhclient.conf
__dhclient_service ""

Created by yaml2readme.rb

Dependencies

None

Example Playbook

- hosts: localhost
  roles:
    - ansible-role-dhclient
  vars:
    name_servers:
      - 8.8.8.8
      - 8.8.4.4
    dhclient_interface: "{% if ansible_os_family == 'FreeBSD' %}em0{% elif ansible_os_family == 'Debian' %}eth0{% elif ansible_os_family == 'OpenBSD' %}em0{% endif %}"
    dhclient_config:
      - "supersede domain-name-servers {{ name_servers | predictable_shuffle(ansible_fqdn) | join(',') }};"

License

Copyright (c) 2016 Tomoyuki Sakurai <[email protected]>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Author Information

Tomoyuki Sakurai tomoyukis@reallyenglish.com

This README was created by ansible-role-init

About

Configures dhclient

Install
ansible-galaxy install reallyenglish.dhclient
GitHub repository
License
isc
Downloads
1.3k
Owner