Installs Blackfire on RHEL/CentOS or Debian/Ubuntu.
After installation, you need to complete Blackfire setup manually before profiling:
- Register the Blackfire agent:
sudo blackfire-agent -register
- Configure Blackfire:
blackfire config
Available variables are listed below, along with default values (see defaults/main.yml
):
blackfire_packages:
- blackfire-agent
- blackfire-php
The Blackfire packages this role will install on the server. Note that blackfire-php
may not work well with XHProf and/or XDebug.
blackfire_gpg_key_url: https://packages.blackfire.io/gpg.key
blackfire_repo_url: http://packages.blackfire.io/fedora/blackfire.repo
Variables used for Blackfire package setup and installation.
Requires the geerlingguy.php
role.
- hosts: webserver
roles:
- geerlingguy.php
- geerlingguy.blackfire
MIT / BSD
This role was created in 2016 by Jeff Geerling, author of Ansible for DevOps.