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.
This commit is contained in:
Alan Orth 2016-08-17 11:39:10 +03:00
parent 8bee2d7a72
commit f798e47ad8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -21,7 +21,7 @@
with_items: "{{ nginx_vhosts }}" with_items: "{{ nginx_vhosts }}"
- name: Install WordPress - 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' when: item.has_wordpress == 'yes'
with_items: "{{ nginx_vhosts }}" with_items: "{{ nginx_vhosts }}"
tags: wordpress tags: wordpress