ansible-role-phpmyadmin/templates/pma.php.j2
2024-01-04 08:05:08 +01:00

24 lines
612 B
Django/Jinja

{{ ansible_managed | comment }}
<?php
$cfg['ForceSSL'] = true;
{% if phpmyadmin_hosts is defined %}
$i = 0;
$hosts = array (
{% for host in phpmyadmin_hosts %}
"{{ host.name }}" => "{{ host.address }}",
{% endfor %}
);
foreach ($hosts as $verbose => $host) {
$i++;
$cfg['Servers'][$i]['verbose'] = $verbose;
$cfg['Servers'][$i]['host'] = $host;
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
}
{% endif %}