Merge "Only run whereto if htaccess file exists"

This commit is contained in:
Zuul 2017-11-22 18:39:10 +00:00 committed by Gerrit Code Review
commit 7ce3416a92
1 changed files with 11 additions and 2 deletions

View File

@ -27,9 +27,18 @@
get_md5: false get_md5: false
register: whereto register: whereto
# TODO(mordred) What happens with whereto if sphinx_source_dir is not doc/source? - name: Check for htaccess
stat:
path: "{{ zuul_work_dir }}/{{ sphinx_source_dir }}/_extra/.htaccess"
get_checksum: false
get_mime: false
get_md5: false
register: htaccess
- name: Run whereto - name: Run whereto
command: command:
cmd: "{{ whereto.stat.path }} {{ sphinx_source_dir }}/_extra/.htaccess doc/test/redirect-tests.txt" cmd: "{{ whereto.stat.path }} {{ sphinx_source_dir }}/_extra/.htaccess doc/test/redirect-tests.txt"
chdir: "{{ zuul_work_dir }}" chdir: "{{ zuul_work_dir }}"
when: whereto.stat.exists when:
- whereto.stat.exists
- htaccess.stat.exists