blob: a8de3ccc3e5e9c382612cb9a83a4eb21945b3a09 [file] [log] [blame]
---
# strongswan molecule/default/verify.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Verify
hosts: all
vars:
tasks:
- name: Gather package facts
package_facts:
manager: auto
- name: Verify package is installed
assert:
that: "'{{ item }}' in ansible_facts.packages"
with_items:
- strongswan
- name: Verify ipsec command is functional
command: ipsec version
register: ipsec_version
changed_when: false
failed_when: '"strongSwan" not in ipsec_version.stdout'