Suse.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. # Suse related tasks
  3. - name: add rpmfusion-free-release {{ ansible_distribution_major_version|int }} repo
  4. dnf:
  5. name: https://download1.rpmfusion.org/free/el/rpmfusion-free-release-{{ ansible_distribution_major_version|int }}.noarch.rpm
  6. disable_gpg_check: yes
  7. validate_certs: no
  8. state: latest
  9. when: not {{ debug_speed_check }}
  10. - name: update os
  11. dnf:
  12. name: '*'
  13. update_cache: true
  14. state: latest
  15. when: not {{ debug_speed_check }}
  16. - name: install needed packages
  17. dnf:
  18. name:
  19. - epel-release
  20. - yum-utils
  21. - curl
  22. - bash-completion
  23. - mlocate
  24. - bzip2
  25. - wget
  26. - libreoffice
  27. - ffmpeg
  28. - mariadb
  29. state: latest
  30. enablerepo: epel
  31. when: not {{ debug_speed_check }}
  32. - name: Ensure Apache is installed on {{ ansible_facts['distribution'] }}
  33. dnf:
  34. name: httpd
  35. state: present
  36. when: nextcloud_websrv in ["apache", "apache2"]
  37. notify: start http
  38. - name: Set http env on {{ ansible_facts['distribution'] }}
  39. set_fact:
  40. http_service_name: httpd
  41. http_webroot: /var/www/html
  42. nextcloud_websrv_user: apache
  43. nextcloud_websrv_group: apache
  44. when: nextcloud_websrv in ["apache", "apache2"]
  45. - name: Generate Nextcloud configuration for apache
  46. template:
  47. dest: /etc/httpd/conf.d/nextcloud.conf
  48. src: nextcloud_apache2.j2
  49. mode: 0640
  50. when: nextcloud_websrv in ["apache", "apache2"]
  51. notify: restart http