openqa/server: check stdout not stderr for database creation
This commit is contained in:
parent
0e20a588bf
commit
f2a8760d1a
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@
|
|||
shell: "/usr/share/openqa/script/initdb --user geekotest --init_database"
|
||||
register: initdb
|
||||
changed_when: "initdb.rc == 0"
|
||||
failed_when: "(initdb.rc > 0) and (initdb.stderr is not defined or initdb.stderr.find('already exists') == -1)"
|
||||
failed_when: "(initdb.rc > 0) and (initdb.stdout is not defined or initdb.stdout.find('already exists') == -1)"
|
||||
|
||||
- name: Enable and start services
|
||||
service: name={{ item }} enabled=yes state=started
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue