--- - name: Install the gcube-app file to make the webapp smartgears compatible template: src=gcube-app.xml.j2 dest={{ item.webapp_path | default('/home/gcube/tomcat') }}/webapps/{{ item.context }}/WEB-INF/gcube-app.xml owner={{ smartgears_user }} group={{ smartgears_user }} with_items: '{{ gcubeapp_webapps | default (omit) }}' notify: Restart smartgears when: gcubeapp_setup tags: [ 'smartgears', 'gcubeapp' ]