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.

7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. - name: stop apache2
  3. service:
  4. name: apache2
  5. state: stopped
  6. - name: delete nextcloud directory
  7. file:
  8. path: "{{nextcloud_directory}}"
  9. state: absent
  10. - name: delete nextcloud lib directory
  11. file:
  12. path: "{{nextcloud_lib_directory}}"
  13. state: absent
  14. when: nextcloud_reset_lib_directory
  15. - name: drop mysql database
  16. mysql_db:
  17. name: "{{nextcloud_database_name}}"
  18. state: absent
  19. delegate_to: "{{ (nextcloud_database_host != 'localhost') | ternary(nextcloud_database_host,inventory_hostname) }}"
  20. when: nextcloud_database_type == "mysql"
  21. - name: drop postgresql database
  22. postgresql_db:
  23. name: "{{nextcloud_database_name}}"
  24. state: absent
  25. delegate_to: "{{ (nextcloud_database_host != 'localhost') | ternary(nextcloud_database_host,inventory_hostname) }}"
  26. when: nextcloud_database_type == "postgresql"
  27. become: yes
  28. become_user: postgres
  29. - name: delete nextcloud log
  30. file:
  31. path: /var/log/nextcloud/nextcloud.log
  32. state: absent