From 4b7496496356f35f04f966ab5cbee807ffe81745 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 1 Jun 2015 14:32:05 +0300 Subject: [PATCH] roles/nginx: Do a shallow clone of WordPress git I realized there was no need to do a full clone when I was working in a Vagrant environment in a coffee shop with slow Internet. ;) Signed-off-by: Alan Orth --- roles/nginx/tasks/tls_vhosts.yml | 2 +- roles/nginx/tasks/vhosts.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nginx/tasks/tls_vhosts.yml b/roles/nginx/tasks/tls_vhosts.yml index 5999a3e..bd7a1fa 100644 --- a/roles/nginx/tasks/tls_vhosts.yml +++ b/roles/nginx/tasks/tls_vhosts.yml @@ -28,7 +28,7 @@ with_items: nginx_tls_vhosts - name: Install WordPress - git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }} + git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 when: item.has_wordpress == 'yes' with_items: nginx_tls_vhosts tags: wordpress diff --git a/roles/nginx/tasks/vhosts.yml b/roles/nginx/tasks/vhosts.yml index 649f234..dbd2e2a 100644 --- a/roles/nginx/tasks/vhosts.yml +++ b/roles/nginx/tasks/vhosts.yml @@ -11,7 +11,7 @@ with_items: nginx_vhosts - name: Install WordPress - git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }} + git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.nginx_domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 when: item.has_wordpress == 'yes' with_items: nginx_vhosts tags: wordpress