Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

49 lignes
2.4 KiB

  1. ---
  2. # This is the master playbook that deploys the whole Xhive and XhiveERP stack
  3. - hosts: localhost
  4. become: yes
  5. become_user: root
  6. roles:
  7. - { role: common, tags: common }
  8. - { role: locale, tags: locale }
  9. - { role: mariadb, tags: mariadb }
  10. - { role: nodejs, tags: nodejs }
  11. - { role: swap, tags: swap, when: production and not container }
  12. - { role: logwatch, tags: logwatch, when: production }
  13. - { role: bash_screen_wall, tags: bash_screen_wall, when: production }
  14. - { role: xhiveframework_selinux, tags: xhiveframework_selinux, when: production }
  15. - { role: dns_caching, tags: dns_caching, when: production }
  16. - { role: ntpd, tags: ntpd, when: production }
  17. - { role: wkhtmltopdf, tags: wkhtmltopdf }
  18. - { role: psutil, tags: psutil }
  19. - { role: redis, tags: redis }
  20. - { role: supervisor, tags: supervisor, when: production }
  21. - { role: nginx, tags: nginx, when: production }
  22. - { role: fail2ban, tags: fail2ban, when: production }
  23. tasks:
  24. - name: Set hostname
  25. hostname: name='{{ hostname }}'
  26. when: hostname is defined and production
  27. - name: Start NTPD
  28. service: name=ntpd state=started
  29. when: ansible_distribution == 'CentOS' and production
  30. - name: Start NTPD
  31. service: name=ntp state=started
  32. when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' and production
  33. - include_tasks: macosx.yml
  34. when: ansible_distribution == 'MacOSX'
  35. - name: setup bench and dev environment
  36. hosts: localhost
  37. vars:
  38. bench_repo_path: "{{ user_directory }}/.bench"
  39. bench_path: "{{ user_directory }}/{{ bench_name }}"
  40. roles:
  41. # setup xhiveframework-bench
  42. - { role: bench, tags: "bench", when: not run_travis and not without_bench_setup }
  43. ...