25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

39 satır
1.1KB

  1. ---
  2. - name: check for config file
  3. stat:
  4. path: "{{nextcloud_directory}}/config/config.php"
  5. register: _nextcloud_config_file
  6. - name: stop apache2
  7. service:
  8. name: apache2
  9. state: stopped
  10. when: not _nextcloud_config_file.stat.isreg is defined
  11. - name: nextcloud initial config file
  12. template:
  13. src: config.php.j2
  14. dest: "{{nextcloud_directory}}/config/config.php"
  15. owner: www-data
  16. group: www-data
  17. when: not _nextcloud_config_file.stat.isreg is defined
  18. - name: install nextcloud
  19. command:
  20. php occ maintenance:install
  21. --admin-user "{{ nextcloud_admin_user }}"
  22. --admin-pass "{{ nextcloud_admin_pass }}"
  23. --database "{{ nextcloud_database_type }}"
  24. --database-host "{{ nextcloud_database_host }}"
  25. --database-name "{{ nextcloud_database_name }}"
  26. --database-user "{{ nextcloud_database_user }}"
  27. --database-pass "{{ nextcloud_database_pass }}"
  28. --data-dir "{{ nextcloud_data_directory }}"
  29. args:
  30. chdir: "{{nextcloud_directory}}"
  31. become: true
  32. become_user: www-data
  33. become_method: sudo
  34. when: not _nextcloud_config_file.stat.isreg is defined