This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +22
-46
lines changed Expand file tree Collapse file tree 8 files changed +22
-46
lines changed Original file line number Diff line number Diff line change 42
42
- src : geerlingguy.nodejs
43
43
version : 4.1.2
44
44
- src : geerlingguy.php
45
- version : 3.4.5
45
+ version : 3.5.0
46
46
- src : geerlingguy.php-memcached
47
47
version : 2.0.0
48
48
- src : geerlingguy.php-mysql
Original file line number Diff line number Diff line change 18
18
- distro : ubuntu1404
19
19
playbook : test.yml
20
20
php_version : 7.0
21
- - distro : ubuntu1204
22
- playbook : test.yml
23
- php_version : 5.6
24
21
25
22
# Only test source install on latest supported OSes.
26
23
- distro : centos7
27
24
playbook : test-source.yml
28
- php_version : 7.0.13
25
+ php_version : 7.1.9
29
26
- distro : ubuntu1604
30
27
playbook : test-source.yml
31
- php_version : 7.0.13
28
+ php_version : 7.1.9
32
29
33
30
script :
34
31
# Configure test script so we can run extra tests after playbook is run.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ php_fpm_pm_max_spare_servers: 5
25
25
# The executable to run when calling PHP from the command line.
26
26
php_executable : " php"
27
27
28
- # OpCache settings (useful for PHP >=5.5) .
28
+ # OpCache settings.
29
29
php_opcache_zend_extension : " opcache.so"
30
30
php_opcache_enable : " 1"
31
31
php_opcache_enable_cli : " 0"
@@ -81,6 +81,7 @@ php_display_startup_errors: "Off"
81
81
82
82
# Install PHP from source (instead of using a package manager) with these vars.
83
83
php_install_from_source : false
84
+ php_source_repo : " https://git.php.net/repository/php-src.git"
84
85
php_source_version : " master"
85
86
php_source_clone_dir : " ~/php-src"
86
87
php_source_clone_depth : 1
Original file line number Diff line number Diff line change @@ -20,7 +20,15 @@ galaxy_info:
20
20
- all
21
21
- name : Ubuntu
22
22
versions :
23
- - all
23
+ - trusty
24
+ - xenial
24
25
galaxy_tags :
25
26
- development
26
27
- web
28
+ - php
29
+ - language
30
+ - fpm
31
+ - drupal
32
+ - wordpress
33
+ - joomla
34
+ - magento
Original file line number Diff line number Diff line change 78
78
79
79
- name : Clone the PHP repository.
80
80
git :
81
- repo : https://git.php.net/repository/php-src.git
81
+ repo : " {{ php_source_repo }} "
82
82
dest : " {{ php_source_clone_dir }}"
83
83
version : " {{ php_source_version }}"
84
84
accept_hostkey : yes
85
85
depth : " {{ php_source_clone_depth }}"
86
- when : php_installed|failed
86
+ when : php_installed.rc != 0
87
87
88
88
- name : Ensure PHP installation path exists.
89
89
file :
90
90
path : " {{ php_source_install_path }}"
91
91
state : directory
92
92
mode : 0755
93
- when : php_installed|failed
93
+ when : php_installed.rc != 0
94
94
95
95
- name : Build configure script.
96
96
shell : >
97
97
./buildconf --force
98
98
chdir={{ php_source_clone_dir }}
99
- when : php_installed|failed
99
+ when : php_installed.rc != 0
100
100
101
101
- name : Run configure script.
102
102
shell : >
103
103
{{ php_source_configure_command }}
104
104
chdir={{ php_source_clone_dir }}
105
- when : php_installed|failed
105
+ when : php_installed.rc != 0
106
106
107
107
- name : Make and install PHP.
108
108
shell : >
111
111
with_items :
112
112
- " {{ php_source_make_command }}"
113
113
- make install
114
- when : php_installed|failed
114
+ when : php_installed.rc != 0
115
115
116
116
- name : Ensure php executable is symlinked into a standard path.
117
117
file :
Original file line number Diff line number Diff line change 5
5
php_enable_webserver : false
6
6
php_install_from_source : true
7
7
php_source_clone_dir : /root/php-src
8
- # Workaround for https://github.com/ansible/ansible-modules-core/issues/5457
9
- php_source_clone_depth : 0
10
8
php_source_make_command : " make --jobs=2"
11
- php_source_version : " php-7.0.13 "
9
+ php_source_version : " php-7.1.9 "
12
10
php_memory_limit : " 192M"
13
11
14
12
pre_tasks :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
changed_when : false
16
16
17
17
# Ubuntu-specific tasks.
18
- - include_vars : test-vars-ubuntu1204.yml
19
- when : ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
20
-
21
18
- name : Add repository for PHP 7.
22
19
apt_repository : repo='ppa:ondrej/php'
23
- when : ansible_distribution == 'Ubuntu' and ansible_distribution_version != '12.04'
24
-
25
- - name : Add repository for PHP 5.6.
26
- apt_repository : repo='ppa:ondrej/php'
27
- when : ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
20
+ when : ansible_distribution == 'Ubuntu'
28
21
29
22
# Debian-specific tasks.
30
23
- name : Add dependencies for PHP versions (Debian).
You can’t perform that action at this time.
0 commit comments