Try to fix tunirports conditional.

This commit is contained in:
Ralph Bean 2015-09-28 18:14:38 +00:00
parent b3b257b88b
commit 20d2e60e42

View file

@ -18,7 +18,7 @@
- autocloud/backend - autocloud/backend
- name: Check for the existance of a 'tunirports' redis entry - name: Check for the existance of a 'tunirports' redis entry
command: redis-cli get tunirports command: redis-cli --scan --pattern tunirports
register: tunirports register: tunirports
tags: tags:
- autocloud - autocloud
@ -26,7 +26,7 @@
- name: Run createports.py, but only if we never have done so. - name: Run createports.py, but only if we never have done so.
command: python /usr/share/tunir/createports.py command: python /usr/share/tunir/createports.py
when: tunirports.stdout != '(nil)' when: tunirports.stdout.find('tunirports') != -1
tags: tags:
- autocloud - autocloud
- autocloud/backend - autocloud/backend