๐Ÿ“— 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

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