codeaffen.phpipam.vrf (1.7.0) — module

Manage virtual routers and forwarders

| "added in version" 0.4.0 of codeaffen.phpipam"

Authors: Christian Meißner (@cmeissner)

Install collection

Install with ansible-galaxy collection install codeaffen.phpipam:==1.7.0


Add to requirements.yml

  collections:
    - name: codeaffen.phpipam
      version: 1.7.0

Description

create, update and delete L2 routing vrfs


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create vrf"
  codeaffen.phpipam.vrf:
    username: "admin"
    password: "s3cr3t"
    server_url: "https://ipam.example.com"
    name: "my vrf"
    sections:
      - Example Inc.
      - DEVOPS department
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Remove vrf"
  codeaffen.phpipam.vrf:
    username: "admin"
    password: "s3cr3t"
    server_url: "https://ipam.example.com"
    name: "my vrf"
    state: absent

Inputs

    
name:
    description: Name of the given vrf
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description: State of the entity
    type: str

app_id:
    default: ansible
    description: API app name
    required: false
    type: str

password:
    description: Password of the user to access phpIPAM server
    required: true
    type: str

sections:
    description: List of sections where the nameserver appears
    required: false
    type: list

username:
    description: Username to access phpIPAM server
    required: true
    type: str

server_url:
    description: URL of the phpIPAM server
    required: true
    type: str

description:
    description: A descriptive text for that entity
    required: false
    type: str

distinguisher:
    description: VRF route distinguisher
    required: false
    type: str

validate_certs:
    default: true
    description: Is the TLS certificate of the phpIPAM server verified or not.
    required: false
    type: bool