Skip to content

Nesting with_items variables #8

@boite

Description

@boite

It would be good to reduce redundancy in variable declarations. This:-

foo_bar_some_var: ~
foo_bar_other_var: ~

is better as:-

foo:
  bar:
    some_var: ~
    other_var: ~ 

To some extent this is already possible through existing use of LightnCandy:-

  • templates can happily refer to {{{ foo.bar.some_var }}}
  • task arguments can too: src: "{{ foo.bar.other_var }}/some_file"

One area has been identified as lacking this ability: with_items can only refer to top-level variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions