Fixes #164: Workaround for shallow tag clones not working in Ansible 2.2.

This commit is contained in:
Jeff Geerling 2016-11-23 13:46:01 -06:00
parent a9c817f9dc
commit 3d15a1ddda
4 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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.

View File

@ -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.

View File

@ -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"