Skip to content

rcanderson23/ansible_mod-phpIPAM

Folders and files

NameName
Last commit message
Last commit date
Apr 4, 2019
Apr 3, 2019
Sep 25, 2018
Apr 4, 2019
Apr 4, 2019
Apr 4, 2019
Apr 4, 2019
Apr 4, 2019

Repository files navigation

Ansible Modules - phpIPAM

Requirements

ansible >= 2.7

Installation

  1. Copy modules into your module folder.
  2. Copy module_utils/phpipam.py into your module_utils folder.

Example Plays

phpipam_freeip

  phpipam_freeip:
    username: admin
    password: secret
    url: 'http://ipam.domain.tld/api/app/'
    subnet: '192.168.10.0/24'
    section: ansible-section
    description: 'Optional description'
  register: new_ip

phpipam_section

  phpipam_section:
    username: admin
    password: secret
    url: 'http://ipam.domain.tld/api/app/'
    section: ansible-section
    master_section: 'root'
    description: 'Optional description'
    state: present

phpipam_subnet

  phpipam_subnet:
    username: admin
    password: secret
    url: 'http://ipam.domain.tld/api/app/'
    subnet: '192.168.10.0/24'
    section: ansible-section
    vlan: '100'
    description: 'Optional description'
    state: present

phpipam_vlan

  phpipam_vlan:
    username: admin
    password: secret
    url: 'http://ipam.domain.tld/api/app/'
    vlan: '100'
    name: 'required name'
    description: 'Optional description'
    domainid: "1" # optional l2domain id, default: 1
    state: present