Skip to content

Add support for action groups in collection #635

@jhallqvist

Description

@jhallqvist

Is your feature request related to a problem?

No

Describe the solution you'd like

Other modules implement "action_groups" in them which allow a user to write cleaner yaml code by specifying vars that is supplied to any task in the collection.
I would love to see this in this collection as well as it would be a cleaner solution than having to repeat ip_address, username and password in every task or, as the dev docs show, declaring a play var and referring to that in subsequent tasks.
It also provides the benefit of only having to supply the configuration parameters in a task which makes it easier for human parsing.
It should be as simple as adding "action_groups" var in runtime.yml and a child var of "all" which lists all panos modules.
Official documentation has examples: Module defaults groups
One module that has implemented this is Ciscos ACI module as can be seen in the runtime.yml of the repo: ansible-aci/meta/runtime.yml

Describe alternatives you've considered

There are no other alternatives that I am aware of that reduces code duplication like module_defaults does.

Additional context

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