Ansible role to install Adminer database management.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Requirements
- Default Variables
- adminer_base_plugins
- adminer_destination
- adminer_download
- adminer_extra_packages
- adminer_general_packages
- adminer_general_plugins
- adminer_group
- adminer_language
- adminer_max_upload_size
- adminer_memory_limit
- adminer_mysql
- adminer_mysql_packages
- adminer_owner
- adminer_php_paths
- adminer_php_versions
- adminer_version
- Discovered Tags
- Dependencies
- License
- Author
- Minimum Ansible version:
2.10
List of required base plugins
adminer_base_plugins:
- name: plugin
url: https://raw.githubusercontent.com/vrana/adminer/v{{ adminer_version
}}/plugins/plugin.php
class: AdminerPlugin
state: "{{ 'present' if adminer_version is version('5.1.1', '<=') else 'absent'
}}"adminer_base_plugins:
- name: login-servers
url: https://raw.githubusercontent.com/pematon/adminer-plugins/master/AdminerLoginServers.php
class: AdminerLoginServers
config: |
[
'mysql://database-01:3306' => 'Database 01',
'mysql://database-02:3306' => 'Database 02',
]Destination path where to install
adminer_destination: /var/www/html/index.phpURL to download the release from
adminer_download: https://github.com/vrana/adminer/releases/download/v{{
adminer_version }}/adminer-{{ adminer_version }}{{ '-mysql' if adminer_mysql
else '' }}{{ '' if adminer_language is none else '-' + adminer_language }}.phpList of extra packages to install
adminer_extra_packages: []List of packages for general databases
adminer_general_packages:
- php
- php-mysql
- php-sqlite3
- php-pgsql
- php-mongodbList of plugins to install
adminer_general_plugins: []adminer_general_plugins:
- name: login-servers
url: https://raw.githubusercontent.com/pematon/adminer-plugins/master/AdminerLoginServers.php
class: AdminerLoginServers
config: |
[
'mysql://database-01:3306' => 'Database 01',
'mysql://database-02:3306' => 'Database 02',
]Group of the destination path
adminer_group: www-dataInstall with single translation
adminer_language:Max allowed size for uploads/imports/dumps
adminer_max_upload_size: 256MMax allowed memory to allocate by PHP
adminer_memory_limit: 256MInstall with mysql support only
adminer_mysql: falseList of packages for mysql databases
adminer_mysql_packages:
- php
- php-mysqlOwner of the destination path
adminer_owner: www-dataPaths to write the custom PHP config to
adminer_php_paths:
- /etc/php/{{ adminer_php_versions[ansible_distribution_version]
}}/apache2/conf.d/99-adminer.ini
- /etc/php/{{ adminer_php_versions[ansible_distribution_version]
}}/cli/conf.d/99-adminer.ini
- /etc/php/{{ adminer_php_versions[ansible_distribution_version]
}}/mods-available/adminer.iniMapping of the available PHP versions on Ubuntu
adminer_php_versions:
'18.04': 7.2
'20.04': 7.4
'22.04': 8.1
'24.04': 8.3Version of the release to install
adminer_version: 5.4.2adminer
Apache-2.0