blob: 6c81a8f768d9307f1196584f97d903888f5e1aff [file] [log] [blame]
Kailash Khalasibe96fc52017-09-29 12:42:30 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#xos-postgres tests
16
17- name: Check PSQL Service Status
18 service:
19 name: postgresql
20 state: started
21 tags:
22 - skip_ansible_lint # running a sub job
23
24- name: Check PSQL Service Version/Port
25 shell: service postgresql status | grep "{{ item }}"
26 register: result
27 with_items:
28 - 9.6/main
29 - port 5432
30 - online
31 tags:
32 - skip_ansible_lint # running a sub job