- name: mariadb installation include_tasks: install.yml when: function == 'install' - name: add databases include_tasks: add_db.yml when: function == 'add_db' - name: add users include_tasks: add_user.yml when: function == 'add_user'