Role Detail

geerlingguy.php-versions

Allows different PHP versions to be installed.
Downloads
2493
Type Ansible
Minimum Ansible Version 2.2
Installation $ ansible-galaxy install geerlingguy.php-versions
Tags
drupal
magento
php
vm
web
wordpress
Last Commit 2017-09-19 01:05:01 AM UTC
Last Imported 2017-10-20 08:05:08 AM UTC
Version History
Version Release Date
2.0.0 2017-09-19 01:05:01 AM
1.1.0 2017-05-31 20:27:08 PM
1.0.1 2017-05-24 01:58:01 AM
1.0.0 2017-05-19 17:50:05 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
Ubuntu precise
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu xenial
Dependencies
Role
Last 10 Imports
Completed Status
2017-10-20 08:05:08 AM UTC SUCCESS
2017-09-19 01:29:01 AM UTC SUCCESS
2017-09-19 01:20:01 AM UTC SUCCESS
2017-09-19 01:12:01 AM UTC SUCCESS
2017-09-18 21:27:09 PM UTC SUCCESS
2017-09-18 21:14:09 PM UTC SUCCESS
2017-09-18 20:44:08 PM UTC SUCCESS
2017-09-18 19:40:07 PM UTC SUCCESS
2017-07-19 23:37:11 PM UTC SUCCESS
2017-07-18 15:21:03 PM UTC SUCCESS

Ansible Role: PHP Versions

Build Status

Allows different PHP versions to be installed when using the geerlingguy.php role (or a similar role). This role was originally built for Drupal VM but was released more generically so others could use an easier mechanism for switching PHP versions.

Requirements

N/A

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

php_version: '7.1'

The PHP version to be installed. Any currently-supported PHP major version is a valid option (e.g. 5.6, 7.0, 7.1, etc.

Dependencies

  • geerlingguy.php is a soft dependency as the php_version variable is required to be set.
  • geerlingguy.repo-remi, if you're using CentOS or a Red Hat derivative.

Example Playbook

- hosts: webservers

  vars:
    php_version: '7.1'

  roles:
    - role: geerlingguy.repo-remi
      when: ansible_os_family == 'RedHat'
    - geerlingguy.php-versions
    - geerlingguy.php

License

MIT / BSD

Author Information

This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.

None