Skip to content

Nesting with_items variables #8

Open

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.

Activity

  1. changed the title [-]Nesting variables[/-] [+]Nesting with_items variables[/+] on Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions