--- - hosts: nextcloud tasks: - name: Upgrade Nextcloud instance command: "/usr/bin/php /var/www/nextcloud/updater/updater.phar --quiet --no-interaction" become: yes become_user: www-data