The Zabbix installation manual recommends some settings in /etc/php5/apache2/php.ini:
`
post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = UTC
`
Other PHP applications have different recommendations. Here are a few recommended values for post_max_size, for example:
Drupal: 10M
PHPMyAdmin: 20M
Wordpress: 8M
Ansible roles for Drupal, PHPMyAdmin, Wordpress, and Zabbix could assure their settings with tasks using the lineinfile module or a Jinja2 template for php.ini.
What happens if two or more PHP applications are installed on the same host? Each role configures its preferred value and the last role to execute wins.
In the post_max_size example, I think that the final configured value should be the maximum from the relevant roles for that host. For other parameters, the preferred value might be the minimum, the average, or some other function of the available values. In some cases, such as timezone, conflicting values should cause an assertion to fail so an administrator can resolve the problem.
Has anyone else encountered this problem? Have you found an approach for tracking a maximum (or minimum, etc.) value across multiple roles and using the maximum in a task?