Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tasks/check_vars.yml for every sub role #8

Open
sac opened this issue Apr 24, 2018 · 0 comments
Open

Add tasks/check_vars.yml for every sub role #8

sac opened this issue Apr 24, 2018 · 0 comments

Comments

@sac
Copy link
Member

sac commented Apr 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant