amine7777.php
Ansible role: PHP
This role helps you to install php on your linux machine.
| Travis | GitHubActions | Quality | Downloads | Version |
|---|---|---|---|---|
Requirements
- Linux machine
- Ansible 2.10
Role Variables
These variables helps to manage php installation.
You can specify your php version in these 2 variables. For example if you would like to install php73, the values will be the following:
php_major_version: 7
php_minor_version: 3
Php is installed using Remi's RPM repository for Centos and Fedora.
If you would like to install more php packages you need to create a list using php packages lis.
For Centos and Fedora: php73-
php_packages:
- php73-mysql
For Ubuntu and Debian: php7.3-
php_packages:
- php7.3-mysql
Example Playbook
- hosts: all
vars:
php_major_version: 7
php_minor_version: 4
roles:
- amine7777.php
Author Information
- Amine Kahlaoui, DevOps engineer.
Install
ansible-galaxy install amine7777.phpLicense
apache-2.0
Downloads
163
Owner
