- name: rest-server installation include_tasks: install.yml when: function == 'install' - name: add repository include_tasks: add_repo.yml when: function == 'add_repo'