Install and configure phpmyadmin on your system.
GitHub | GitLab | Downloads | Version |
---|---|---|---|
This example is taken from molecule/default/converge.yml
and is tested on each push, pull request and release.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: robertdebock.httpd
- role: robertdebock.phpmyadmin
The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: robertdebock.bootstrap
- role: robertdebock.core_dependencies
- role: robertdebock.buildtools
- role: robertdebock.epel
- role: robertdebock.python_pip
- role: robertdebock.openssl
openssl_items:
- name: apache-httpd
common_name: "{{ ansible_fqdn }}"
- role: robertdebock.selinux
- role: robertdebock.httpd
- role: robertdebock.mysql
mysql_users:
- name: admin
password: P@s5-W0rd
priv: "*.*:ALL"
- role: robertdebock.php
Also see a full explanation and example on how to use these roles.
The default values for the variables are set in defaults/main.yml
:
---
# defaults file for phpmyadmin
# The version of PHPMyAdmin to install
phpmyadmin_version: "5.2.1"
# Where to connect to for the database.
phpmyadmin_database_host: localhost
# To authenticate to the database using a user/pass requested in the browser,
# ensure you set phpmyadmin_blowfish_secret.
phpmyadmin_blowfish_secret: "x7GD9DBEE32bAWd2sTHKBfYiqOfnj82neaPD3wrDTs0K"
# Only set these (and unset phpmyadmin_blowfish_secret) to save the login
# credentials in the configuration file.
# This role does not setup a MySQL user and/or password, it just uses these
# settings.
phpmyadmin_database_user: admin
phpmyadmin_database_pass: "P@s5-W0rd"
phpmyadmin_database_compress: false
phpmyadmin_database_allownopassword: false
- pip packages listed in requirements.txt.
The following roles are used to prepare a system. You can prepare your system in another way.
Most roles require some kind of preparation, this is done in molecule/default/prepare.yml
. This role has a "hard" dependency on the following roles:
- {'role': 'robertdebock.httpd'}
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
This role has been tested on these container images:
container | tags |
---|---|
EL | 9 |
Debian | all |
Fedora | all |
Ubuntu | all |
The minimum version of Ansible required is 2.12, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub.
Please consider sponsoring me.