๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
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.
 
 
ansible-playbooks/tasks/includes/role.yml

13 lines
374 B

- 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 }}"
public: "{{ this_role.public | d(false) }}"
tasks_from: "{{ this_role.tasks_from | d(omit) }}"
vars:
function: "{{ this_role.function | d(None) }}"