mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-02-10 00:11:35 +01:00
Fixes #164: Workaround for shallow tag clones not working in Ansible 2.2.
This commit is contained in:
parent
a9c817f9dc
commit
3d15a1ddda
@ -154,6 +154,7 @@ Set this to `true` to install PHP from source instead of installing from package
|
||||
The version of PHP to install from source (a git branch, tag, or commit hash).
|
||||
|
||||
php_source_clone_dir: "~/php-src"
|
||||
php_source_clone_depth: 1
|
||||
php_source_install_path: "/opt/php"
|
||||
php_source_install_gmp_path: "/usr/include/x86_64-linux-gnu/gmp.h"
|
||||
|
||||
|
@ -79,6 +79,7 @@ php_display_startup_errors: "Off"
|
||||
php_install_from_source: false
|
||||
php_source_version: "master"
|
||||
php_source_clone_dir: "~/php-src"
|
||||
php_source_clone_depth: 1
|
||||
php_source_install_path: "/opt/php"
|
||||
php_source_install_gmp_path: "/usr/include/x86_64-linux-gnu/gmp.h"
|
||||
# For faster compile time: "make --jobs=X" where X is # of cores present.
|
||||
|
@ -82,7 +82,7 @@
|
||||
dest: "{{ php_source_clone_dir }}"
|
||||
version: "{{ php_source_version }}"
|
||||
accept_hostkey: yes
|
||||
depth: 1
|
||||
depth: "{{ php_source_clone_depth }}"
|
||||
when: php_installed|failed
|
||||
|
||||
- name: Ensure PHP installation path exists.
|
||||
|
@ -5,6 +5,8 @@
|
||||
php_enable_webserver: false
|
||||
php_install_from_source: true
|
||||
php_source_clone_dir: /root/php-src
|
||||
# Workaround for https://github.com/ansible/ansible-modules-core/issues/5457
|
||||
php_source_clone_depth: 0
|
||||
php_source_make_command: "make --jobs=2"
|
||||
php_source_version: "php-7.0.13"
|
||||
php_memory_limit: "192M"
|
||||
|
Loading…
Reference in New Issue
Block a user