From f798e47ad8afd4299d99b040299867c1e12950cc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 17 Aug 2016 11:39:10 +0300 Subject: [PATCH] roles/nginx: Add 'force=yes' to WordPress git repo clone I never modify file in the git repo, but the WordPress updater does updates from the web (for example TwentySixteen theme), and this always causes the task to fail when I switch WordPress versions. --- roles/nginx/tasks/vhosts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/tasks/vhosts.yml b/roles/nginx/tasks/vhosts.yml index bb47737..714f737 100644 --- a/roles/nginx/tasks/vhosts.yml +++ b/roles/nginx/tasks/vhosts.yml @@ -21,7 +21,7 @@ with_items: "{{ nginx_vhosts }}" - name: Install WordPress - git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 + git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 force=yes when: item.has_wordpress == 'yes' with_items: "{{ nginx_vhosts }}" tags: wordpress