You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
936B

  1. ---
  2. - name: occ app list
  3. command: php occ app:list
  4. args:
  5. chdir: "{{nextcloud_directory}}"
  6. register: _nextcloud_occ_app_list
  7. changed_when: false
  8. become: true
  9. become_user: www-data
  10. become_method: sudo
  11. - name: nextcloud install apps
  12. command: php occ app:install {{item}}
  13. with_items: "{{ nextcloud_apps | difference(_nextcloud_apps_present) }}"
  14. args:
  15. chdir: "{{nextcloud_directory}}"
  16. become: true
  17. become_user: www-data
  18. become_method: sudo
  19. - name: occ app list
  20. command: php occ app:list
  21. args:
  22. chdir: "{{nextcloud_directory}}"
  23. register: _nextcloud_occ_app_list
  24. changed_when: false
  25. become: true
  26. become_user: www-data
  27. become_method: sudo
  28. - name: nextcloud enable apps
  29. command: php occ app:enable {{item}}
  30. with_items: "{{ nextcloud_apps | difference(_nextcloud_apps_enabled) }}"
  31. args:
  32. chdir: "{{nextcloud_directory}}"
  33. become: true
  34. become_user: www-data
  35. become_method: sudo