nextcloud_cism.yml 1.1 KB

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: install stuffs to be integrated later in salt
  11. dnf:
  12. name: ['epel-release', 'policycoreutils-python-utils', 'python3-cryptography', 'libselinux-python3']
  13. state: present
  14. when: ansible_os_family == 'Rocky'
  15. - name: add hostname in hosts
  16. blockinfile:
  17. dest: /etc/hosts
  18. #content: '{{ ansible_host }} {{ nc_global_name }}'
  19. content: '{{ ansible_host }} {{ ansible_fqdn }}'
  20. state: present
  21. roles:
  22. #- role: mariadb
  23. # vars:
  24. # mariadb_datadir: "/storage/nextcloud/mysql"
  25. #- role: web_php
  26. - role: nextcloud
  27. vars:
  28. NEXTCLOUD_VERSION: "25.0.6"
  29. nc_data_dir: /storage/nextcloud/data
  30. objectstore_s3_install: false
  31. environment:
  32. http_proxy: "http://proxy.sipr.ucl.ac.be:889"
  33. https_proxy: "http://proxy.sipr.ucl.ac.be:889"
  34. no_proxy: "127.0.0.1, localhost, 192.168.64.68, 192.168.64.73, 192.168.64.51, nextcloud.test, ceph.cism.ucl.ac.be, 192.168.64.68"