Fix undefined wp variables

Replace "or" with "|default()"
Add missing " at end of line

Change-Id: If48f410110647b6b39f84032123224558a533af0
This commit is contained in:
Ghe Rivero 2016-10-21 17:20:04 +02:00
parent 08443db0c7
commit b2ed095b1e
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
- name: Download wordpress
get_url:
url: "{{ app_env.wp_latest or 'https://wordpress.org/latest.tar.gz' }}"
url: "{{ app_env.wp_latest | default('https://wordpress.org/latest.tar.gz') }}"
dest: /var/www/latest.tar.gz
- name: Unpack latest wordpress
@ -92,7 +92,7 @@
- name: Install wordpress command line tool
get_url:
url: "{{ app_env.wp_cli or 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar' }}
url: "{{ app_env.wp_cli | default('https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar') }}"
dest: /usr/local/bin/wp
mode: "a+x"
force: no

View File

@ -26,7 +26,7 @@
- name: Download wordpress importer plugin
get_url:
url: "{{ app_env.wp_importer or 'http://downloads.wordpress.org/plugin/wordpress-importer.0.6.3.zip' }}"
url: "{{ app_env.wp_importer | default('http://downloads.wordpress.org/plugin/wordpress-importer.0.6.3.zip') }}"
dest: /tmp/wordpress-importer.zip
force: yes