GithubHelp home page GithubHelp logo

Comments (3)

giorgos-nikolopoulos avatar giorgos-nikolopoulos commented on June 18, 2024 1

This is a valid issue.

The reason these two attributes are not in the module's options is that the module makes the assumption that when an object is retrieved, even for values that are not set in the module arguments, the NITRO API returns every attribute of the specified object.
In most cases this is true. Even unset attributes are returned with default values.

This is useful for the module to assess the equality of the playbook configuration and the actual object attributes and decide if an update is necessary.

The resrule and rule options are not returned unless explicitly set on the object.
When the modules were written this situation was not addressed.

The fix for this would require to introduce handling for attributes with this particular behavior.

We will keep track of this issue and fix it in the future.

from ansible-collection-netscaleradc.

cwegener avatar cwegener commented on June 18, 2024

Update:
Having had a read of the citrix_adc_lb_vserver module, not even the resrule parameter is present. The resrule parameter is only mentioned in the module documentation but actually not implemented as a paramter either.

from ansible-collection-netscaleradc.

giorgos-nikolopoulos avatar giorgos-nikolopoulos commented on June 18, 2024

We recently added the citrix_adc_nitro_resource module.

Have a look at its documentation here

Perhaps you can use a playbook similar to the following to create a lb vserver with the rule parameter defined.

- hosts: citrix_adc

  gather_facts: False
  vars_files:
    - workflows.yaml

  tasks:
    - name: Setup nitro resource lb vserver
      delegate_to: localhost
      citrix_adc_nitro_resource:
        nsip: "{{ nsip }}"
        nitro_user: "{{ nitro_user }}"
        nitro_pass: "{{ nitro_pass }}"
        state: present

        workflow: "{{ workflow.lbvserver }}"

        resource:
          name: lb-vserver-1
          servicetype: HTTP
          ipv46: 6.93.3.3
          port: 80
          rule: "some expression here"

from ansible-collection-netscaleradc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.