network/tests/tasks/assert_profile_present.yml
Wen Liang 5ff1189409 ansible-lint: Fix name[missing] and name[play] failures
Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2023-04-10 17:49:07 +02:00

18 lines
684 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
- name: Include the task 'get_profile_stat.yml'
include_tasks: get_profile_stat.yml
- name: "Assert that the profile is present - '{{ profile }}'"
assert:
that: lsr_net_profile_exists
msg: "profile {{ profile }} does not exist"
- name: "Assert that the ansible managed comment is present in '{{ profile }}'"
assert:
that: lsr_net_profile_ansible_managed
msg: "profile {{ profile }} does not have the ansible managed comment"
- name: Assert that the fingerprint comment is present in {{ profile }}
assert:
that: lsr_net_profile_fingerprint
msg: "profile {{ profile }} does not have the fingerprint comment"