25 lines
612 B
Text
25 lines
612 B
Text
|
{{ 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 %}
|