d_strobel.windows.dhcp_scope_v4 (1.4.0) — module

Add or remove a IPv4 dhcp scope.

Authors: Dustin Strobel (@d-strobel)

Install collection

Install with ansible-galaxy collection install d_strobel.windows:==1.4.0


Add to requirements.yml

  collections:
    - name: d_strobel.windows
      version: 1.4.0

Description

Add or remove a IPv4 dhcp scope.

Inputs

    
name:
    description:
    - Specify the name of the dhcp scope.
    required: false
    type: str

type:
    choices:
    - dhcp
    - bootp
    - both
    default: dhcp
    description:
    - Specifies the type of clients to be serviced by the scope.
    type: str

scope:
    description:
    - Define the scope for the dhcp range. This is the subnet of the dhcp range.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    - inactive
    default: present
    description:
    - Set to C(present) to ensure the scope is present.
    - Set to C(absent) to ensure the scope is removed.
    - Set to C(inactive) to ensure the scope is present but inactive.
    type: str

end_range:
    description:
    - Define the last ip-address of the dhcp range.
    required: true
    type: str

description:
    description:
    - Define a desciption to the scope.
    required: false
    type: str

start_range:
    description:
    - Define the first ip-address of the dhcp range.
    required: true
    type: str

subnet_mask:
    description:
    - Define the subnet mask of the dhcp range.
    required: true
    type: str