changed_when:"'already installed' not in nextcloud_apps_install_results.stdout"
changed_when:"'already installed' not in nextcloud_apps_install_results.stdout"
failed_when:nextcloud_apps_install_results.rc != 0 and not (nextcloud_apps_install_results.rc == 1 and 'already installed' in nextcloud_apps_install_results.stdout)
failed_when:>-
nextcloud_apps_install_results.rc != 0 and
not (nextcloud_apps_install_results.rc == 1 and 'already installed' in nextcloud_apps_install_results.stdout)