buluma.phpmyadmin
Simple Guide to Ansible Role phpmyadmin
This guide is for installing phpMyAdmin on Linux.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here’s a sample playbook from molecule/default/converge.yml
. It is tested whenever changes are made.
---
- name: Set Up
hosts: all
become: true
vars:
php_version: "7.3"
phpmyadmin_enablerepo: "remi,remi-php73"
phpmyadmin_mysql_user: sp3cial_us3r
phpmyadmin_mysql_password: s3cure_password_h3r3
pre_tasks:
- name: Update apt cache.
ansible.builtin.apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
roles:
- role: buluma.phpmyadmin
post_tasks:
- name: Check if phpMyAdmin is running.
ansible.builtin.uri:
url: "http://127.0.0.1/phpmyadmin/"
status_code: 200
register: result
until: result.status == 200
retries: 60
delay: 1
Before running, the machine must be prepared, done in CI with molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: yes
gather_facts: no
roles:
- role: buluma.bootstrap
- role: geerlingguy.apache
- role: geerlingguy.mysql
- role: geerlingguy.php
For a detailed explanation, check out this guide.
Role Variables
Default variable values are in defaults/main.yml
:
---
phpmyadmin_enablerepo: epel
phpmyadmin_mysql_host: localhost
phpmyadmin_mysql_user: root
phpmyadmin_mysql_password: "{{ mysql_root_password }}"
Requirements
- Python packages listed in requirements.txt.
State of Used Roles
These roles are used to set up the system. You can use different methods if you prefer.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
geerlingguy.repo-remi | ||
geerlingguy.apache | ||
geerlingguy.mysql | ||
buluma.php_versions | ||
geerlingguy.php | ||
geerlingguy.php-mysql |
Context
This role works with many other roles. Check their documentation for more details.
Compatibility
This role has been tested on these Docker images:
container | tags |
---|---|
EL | all |
Debian | all |
Ubuntu | all |
Ansible version 2.4 or higher is required, and tests have been conducted on multiple versions.
If you find any issues, please report them on GitHub.
Changelog
See the Role History.
License
This role is licensed under Apache-2.0.
Author Information
Written by Shadow Walker.
phpMyAdmin installation for Linux
ansible-galaxy install buluma.phpmyadmin