ansible >= 2.7
- Copy modules into your module folder.
- Copy
module_utils/phpipam.py
into your module_utils folder.
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:
username: admin
password: secret
url: 'http://ipam.domain.tld/api/app/'
section: ansible-section
master_section: 'root'
description: 'Optional description'
state: present
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:
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