blob: 2d7e635f14df014b4f222a2c30a01b8ed9720bb2 [file] [log] [blame]
Hyunsun Moonc49a8642020-11-11 14:58:47 -08001---
2# bird molecule/default/verify.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: Verify
8 hosts: all
9 tasks:
10 - name: Gather package facts
11 package_facts:
12 manager: auto
13
14 - name: Verify BIRD is installed
15 assert:
16 that: "'{{ item }}' in ansible_facts.packages"
17 with_items:
18 - bird
19
20 - name: Verify BIRD daemon operation
21 command: birdc show status
22 register: bird_health
23 changed_when: false
24 failed_when: "'Daemon is up and running' not in bird_health.stdout"
25
26 - name: Verify BIRD configuration
27 command: birdc show protocols
28 register: bird_conf
29 changed_when: false
30 failed_when: item not in bird_conf.stdout
31 with_items:
32 - gcp_tunnel1
33 - gcp_tunnel2