Skip to content

Unable to create disabled panos_nat_rule #197

Description

@Nothing4You

Is your feature request related to a problem?

I'm unable to create disabled nat rules in a single task.
Using 2 tasks results in always having 2 changed tasks.

Describe the solution you'd like

Either consider states enable and disable similar to present and create rules accordingly or introduce a separate parameter like disabled in panos_security_rule.

Describe alternatives you've considered

Using 2 tasks, first one with state: "present", second task with state: "disabled".
This results in both tasks being changed in each run.

Additional context

I need disabled rules to ensure being able to set up the correct order using location and existing_rule even if some rules in the list are unused at the time.

TASK [paloalto : nat rule foo]
fatal: [pa]: FAILED! => {"changed": false, "msg": "Rule \"foo\" not present"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions