main.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Default variables for webservers
  3. #
  4. with_apache2: False
  5. with_apache2_modphp5: False
  6. with_nginx: False
  7. # nginx_workers ~= $(getconf _NPROCESSORS_ONLN)
  8. nginx_workers: 2
  9. nginx_ssl_strengthened: False
  10. with_fpm: False
  11. fpm_pool_count: 1
  12. fpm_user: 'www-data'
  13. fpm_group: 'www-data'
  14. # fpm_max_children ~= (total RAM - RAM used by other process) / (average amount of RAM used by a PHP process)
  15. fpm_start_servers: 2
  16. fpm_max_children: 5
  17. fpm_min_spare_servers: 1
  18. fpm_max_spare_servers: 3
  19. with_php: False
  20. with_php_lt_54: False
  21. phpsyscheck_vhostname: sys.localhost
  22. php_config:
  23. - key: 'date.timezone'
  24. value: 'Europe/Paris'
  25. - key: 'short_open_tag'
  26. value: 'off'
  27. - key: 'expose_php'
  28. value: 'off'
  29. php_config_web:
  30. - key: 'display_errors'
  31. value : 'off'
  32. - key: 'display_startup_errors'
  33. value: 'off'
  34. - key: 'log_errors'
  35. value: 'on'
  36. - key: 'html_errors'
  37. value: 'off'
  38. - key: 'cgi.fix_pathinfo'
  39. value: '0'
  40. # Set with /etc/default/php5-fpm (see https://bugs.php.net/bug.php?id=66239)
  41. # - key: 'error_log'
  42. # value: 'syslog'
  43. with_php_apc: False
  44. with_phpmyadmin: False
  45. phpmyadmin_vhostname: pma.localhost
  46. http_auth_phpmyadmin_username: ''
  47. http_auth_phpmyadmin_password: ''
  48. http_auth_user_name: ''
  49. http_auth_user_password: ''
  50. http_auth_admin_password: seVDetGvSs7nA # openssl passwd -crypt adm123in
  51. # vim: ft=yaml