Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Members parameter broken in nios_network module #222

Open
petj06 opened this issue Apr 11, 2024 · 0 comments
Open

Members parameter broken in nios_network module #222

petj06 opened this issue Apr 11, 2024 · 0 comments

Comments

@petj06
Copy link

petj06 commented Apr 11, 2024

I am trying to create a new network using the nios_network and when I use the members parameter to specify the name of my internal name servers using the members "name", I get the following error:

"msg": "Unsupported parameters for (infoblox.nios_modules.nios_network) module: members. Supported parameters include: template, network (cidr, name), provider, network_view, extattrs, options, comment, state, container."

According to this doc, it appears that my syntax for the members is correct: https://docs.ansible.com/ansible/latest/collections/infoblox/nios_modules/nios_network_module.html
Ansible core version: 2.13.8
python version = 3.9.18

---
- hosts: localhost
  connection: local
  gather_facts: no

  vars:
    nios_provider:
      host: "{{ ib_host }}"
      username: "{{ ib_user }}"
      password: "{{ ib_pass }}"
      wapi_version: "2.9"

  tasks:
  # Fail the playbook if the required variables aren't defined
  - name: Check for required variables
    fail:
      msg: One or more required variables not defined
    when:
      - ib_host is undefined
      - ib_user is undefined
      - ib_pass is undefined
      - network is undefined

  - name: Create Infoblox network
    infoblox.nios_modules.nios_network:
      network: "{{ item.network }}"
      members:
        - name: internal-a.test.org
        - name: internal-b.test.org
      options:
        - name: "router"
          value: "{{ item.router }}"
      state: "present"
    with_items:
      - { network: "10.20.192.0/29", router: "10.20.192.1" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant