codeaffen / phpipam-ansible-modules

Ansible Modules to manage phpIPAM installations
https://codeaffen.org/projects/phpipam-ansible-modules
GNU General Public License v3.0
22 stars 10 forks source link

Implement lookup plugin for `next_address` for a subnet in a given section #34

Open cmeissner opened 4 years ago

cmeissner commented 4 years ago

Is your feature request related to a problem? Please describe.

It would be a good idea to have a lookup plugin to get the next free ip address for a subnet in a given section.

Describe the solution you'd like

There should be a lookup plugin (e.g. codeaffen.phpipam.next_address) which return the next free ip address for a subnet for in a given section.

E.g.

- name: get next ip address
  vars:
    ip: "{{ query('codeaffen.phpipam.next_address', server_url='ipam.example.com', app_id='ansible', username='username', password='password', subnet='192.0.2.0/24', section='DevOps Dept.') }}"

Describe alternatives you've considered

Alternatively we need to implement all the steps needed to get the next ip address by hand.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.