| --- |
| # bird molecule/default/verify.yml |
| # |
| # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| - name: Verify |
| hosts: all |
| tasks: |
| - name: Gather package facts |
| package_facts: |
| manager: auto |
| |
| - name: Verify BIRD is installed |
| assert: |
| that: "'{{ item }}' in ansible_facts.packages" |
| with_items: |
| - bird |
| |
| - name: Verify BIRD daemon operation |
| command: birdc show status |
| register: bird_health |
| changed_when: false |
| failed_when: "'Daemon is up and running' not in bird_health.stdout" |
| |
| - name: Verify BIRD configuration |
| command: birdc show protocols |
| register: bird_conf |
| changed_when: false |
| failed_when: item not in bird_conf.stdout |
| with_items: |
| - gcp_tunnel1 |
| - gcp_tunnel2 |