nextcloud.yml 892 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: apply nextcloud role
  3. collections:
  4. - community.general
  5. - ansible.posix
  6. hosts: web_servers
  7. vars:
  8. ansible_python_interpreter: /usr/bin/python3
  9. pre_tasks:
  10. - name: define ansible_python_interpreter group // linux distribution
  11. set_fact:
  12. ansible_python_interpreter: /usr/bin/python2
  13. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  14. roles:
  15. - role: redis
  16. vars:
  17. redis_daemon: "keydb"
  18. redis_port: "6380"
  19. - role: keepalived
  20. - role: haproxy
  21. vars:
  22. hatarget: "keydb"
  23. redis_vip_port: "6380"
  24. redis_port: "6380"
  25. ssl_self: false
  26. - role: web_php
  27. vars:
  28. enable_php_fpm: false
  29. redis_daemon: "keydb"
  30. redis_port: "6380"
  31. - role: nextcloud
  32. vars:
  33. NEXTCLOUD_VERSION: "24.0.8"
  34. redis_port: "6380"