staging-sync/db-sync: Fix the condition to ensure the server is defined and not null
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
cf31e3f0c8
commit
f755eef97f
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
tasks:
|
||||
- service: name=httpd state=stopped
|
||||
when: server is defined
|
||||
when: (server is defined) and (server|length > 0)
|
||||
|
||||
- name: drop and re-create the staging db entirely
|
||||
hosts: "{{ dbhost }}.stg.iad2.fedoraproject.org"
|
||||
|
@ -95,7 +95,7 @@
|
|||
|
||||
tasks:
|
||||
- service: name=httpd state=started
|
||||
when: server is defined
|
||||
when: (server is defined) and (server|length > 0)
|
||||
|
||||
- name: Remove the prod db dump now that we are done
|
||||
hosts: "{{ dbhost }}.iad2.fedoraproject.org"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue