Try to fix tunirports conditional.
This commit is contained in:
parent
b3b257b88b
commit
20d2e60e42
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue