您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

39 行
988B

  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