Skip to content

Commit

Permalink
nexclout: make app enable/disable task idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Jun 1, 2020
1 parent df6df7f commit 10443a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/nextcloud/tasks/nextcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@
register: nextcloud_upgrade
changed_when: not 'Nextcloud is already latest version' in nextcloud_upgrade.stdout

# Not idempotent - https://github.com/nextcloud/server/issues/17789
- name: enable/disable nextcloud applications
become: yes
become_user: www-data
Expand All @@ -267,4 +266,6 @@
chdir: "{{ nextcloud_install_dir }}"
with_items: "{{ nextcloud_apps }}"
register: nextcloud_app_enable_disable
changed_when: not 'No such app enabled' in nextcloud_app_enable_disable.stdout
changed_when:
- not 'No such app enabled' in nextcloud_app_enable_disable.stdout
- not 'already enabled' in nextcloud_app_enable_disable.stdout

0 comments on commit 10443a4

Please sign in to comment.