nextcloud.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. redis_daemon: "redis"
  10. redis_port: "6379"
  11. pre_tasks:
  12. - name: define ansible_python_interpreter group // linux distribution
  13. set_fact:
  14. ansible_python_interpreter: /usr/bin/python2
  15. when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  16. roles:
  17. - role: redis
  18. when: redis_daemon == "redis" or redis_daemon == "keydb"
  19. - role: keepalived
  20. when: (groups['web_servers'] | length) > 1
  21. #- role: haproxy
  22. # vars:
  23. # #hatarget: "keydb"
  24. # hatarget: "{{ redis_daemon }}"
  25. # vip_port: "6380"
  26. # ssl_self: false
  27. # when: (groups['web_servers'] | length) > 1
  28. - role: web_php
  29. # vars:
  30. # enable_php_fpm: false
  31. - role: nextcloud
  32. vars:
  33. ansible_become_pass: ""
  34. NEXTCLOUD_VERSION: "25.0.6"
  35. nc_data_dir: /storage/nextcloud/data
  36. objectstore_s3_install: false
  37. #objectstore_s3_key: "229ZJOPCR6JHHU4HIP69"
  38. #objectstore_s3_secret: "xCnx98XN39fDKh3ACGQ9XuDJEOw7PRBxyFW4KjRs"
  39. #objectstore_s3_hostname: "192.168.56.71"