gluster-ansible-infra icon indicating copy to clipboard operation
gluster-ansible-infra copied to clipboard

Add tasks/check_vars.yml for every sub role

Open sac opened this issue 6 years ago • 0 comments

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.

sac avatar Apr 24 '18 03:04 sac