Skip to content

Add tasks/check_vars.yml for every role #3

@sac

Description

@sac

This tasks file should essential check for the required variables for that particular role.

For example:

- name: Checking that required variables are set
  fail: msg="{{ item }} is not defined"
  when: not {{ item }}
  with_items:
    - foo_volname
    - foo_username
    - foo_mastenodes

This should essentially do a role sanity check before executing the role.

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