Skip to content
Snippets Groups Projects
Commit e418a607 authored by nimrod's avatar nimrod
Browse files

- Forked from mod-php.

parent 57667146
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ env: ...@@ -9,8 +9,8 @@ env:
- VBOX_MEMORY=2048 - VBOX_MEMORY=2048
- VBOX_HWVIRTEX=off - VBOX_HWVIRTEX=off
matrix: matrix:
- TOXENV=trusty - TOXENV=xenial
- &jessie TOXENV=jessie - &stretch TOXENV=stretch
cache: cache:
- pip - pip
...@@ -34,6 +34,8 @@ notifications: ...@@ -34,6 +34,8 @@ notifications:
matrix: matrix:
fast_finish: True fast_finish: True
allow_failures:
- env: *stretch
include: include:
- env: - env:
TOXENV: pre-commit TOXENV: pre-commit
......
mod-php mod-php7
####### ########
.. image:: https://travis-ci.org/adarnimrod/mod-php.svg?branch=master .. image:: https://travis-ci.org/adarnimrod/mod-php7.svg?branch=master
:target: https://travis-ci.org/adarnimrod/mod-php :target: https://travis-ci.org/adarnimrod/mod-php7
Provision PHP application server using Apache with mod-php. Provision PHP7 application server using Apache with mod-php7.
Requirements Requirements
------------ ------------
......
--- ---
# defaults file for mod-php # defaults file for mod-php7
--- ---
# handlers file for mod-php # handlers file for mod-php7
galaxy_info: galaxy_info:
author: Nimrod Adar author: Nimrod Adar
description: Provision PHP application server using Apache with mod-php description: Provision PHP7 application server using Apache with mod-php7
company: Shore technologies company: Shore technologies
license: MIT license: MIT
min_ansible_version: 2.3 min_ansible_version: 2.3
platforms: platforms:
- name: Ubuntu - name: Ubuntu
versions: versions:
- trusty - xenial
- name: Debian - name: Debian
versions: versions:
- jessie - stretch
galaxy_tags: [ PHP ] galaxy_tags: [ PHP ]
dependencies: dependencies:
- name: php5 - name: php7
src: adarnimrod.php5 src: adarnimrod.php7
- name: apache - name: apache
src: adarnimrod.apache src: adarnimrod.apache
--- ---
# tasks file for mod-php # tasks file for mod-php7
- name: Assertions - name: Assertions
assert: assert:
that: that:
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
- name: APT install - name: APT install
apt: apt:
name: libapache2-mod-php5 name: libapache2-mod-php7.0
state: present state: present
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
- name: Enable PHP module - name: Enable PHP module
apache2_module: apache2_module:
name: php5 name: php7.0
state: present state: present
notify: notify:
- Restart Apache - Restart Apache
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
- hosts: all - hosts: all
strategy: free strategy: free
roles: [mod-php] roles: [mod-php7]
post_tasks: post_tasks:
- name: Install cURL - name: Install cURL
package: package:
......
...@@ -9,4 +9,4 @@ def test_mod_php(Command, Sudo): ...@@ -9,4 +9,4 @@ def test_mod_php(Command, Sudo):
def test_phpinfo(Command): def test_phpinfo(Command):
'PHP Version 5' in Command('curl http://localhost/phpinfo.php').stdout 'PHP Version 7.0' in Command('curl http://localhost/phpinfo.php').stdout
[tox] [tox]
skip_install = True skip_install = True
skipsdist = True skipsdist = True
envlist = trusty,jessie envlist = xenial,stretch
[testenv] [testenv]
envdir = {toxinidir}/.tox/molecule envdir = {toxinidir}/.tox/molecule
......
--- ---
# vars file for mod-php # vars file for mod-php7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment