You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
271 B
12 lines
271 B
2 years ago
|
- name: fail if role is not defined
|
||
|
fail:
|
||
|
msg: this_role variable is not defined or is not an object
|
||
|
when: this_role is not mapping
|
||
|
|
||
|
|
||
|
- name: include role
|
||
|
include_role:
|
||
|
name: "{{ this_role.role }}"
|
||
|
vars:
|
||
|
function: "{{ this_role.function | d(None) }}"
|