ansible-playbook playbook.yml
- playbook: Play the role
role1with aprintvariable. It's purpose is to test how handlers are dealing with variables, reused in a roles dependency.
- role1: Depends on role2. Will debug the
printvariable and call two handlers, one from role1 and another from role2, both debuggingprint. - role2: Contains a handler that debugs the
printvariable as well.