geerlingguy.adminer
Ansible Role: Adminer
This is an Ansible Role that installs Adminer on almost any computer.
Requirements
To use Adminer, you need PHP and MySQL installed. If you have Apache, Adminer can automatically create a configuration to be accessible at /adminer on any virtual host. You can disable this feature by setting adminer_add_apache_config to false.
Role Variables
Here are the variables you can use, along with their default values (found in defaults/main.yml):
adminer_download_url:
https://www.adminer.org/latest.phpThe URL to download Adminer.
adminer_install_dir:
/opt/adminerThe directory where Adminer will be installed.
adminer_install_filename:
adminer.phpThe filename for the downloaded Adminer. If managing virtual hosts manually, it may be easier to set the document root to
adminer_install_dirand useindex.phpin the URL.adminer_symlink_dirs:
[]List of directories where you want
adminer.phpto be symlinked. This is useful for accessing it directly atsitename/adminer.php.adminer_add_apache_config:
falseSet to
trueto allow Adminer to create an Apache configuration file, enabling access athostname/adminer. The role will also restart Apache for the changes to take effect.adminer_theme:
''You can choose any theme from the Adminer library (for example,
pappu687). A full list of themes is available here.
Dependencies
There are no strict dependencies. However, if adminer_add_apache_config is true, it will rely on some variables and handlers from the geerlingguy.apache role.
Example Playbook
- hosts: servers
roles:
- { role: geerlingguy.adminer }
License
MIT / BSD
Author Information
This role was created by Jeff Geerling in 2015, author of Ansible for DevOps. It is based on Oefenweb/ansible-adminer.
Installs Adminer for Database management.
ansible-galaxy install geerlingguy.adminer