blob: 8315e1f5c2c4a03156a45a6ea23c25e4b970ec7a [file] [log] [blame]
Oleksandr Kozachenko39978032023-02-07 04:03:07 +01001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# 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, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15- name: Verify
16 hosts: all
17 gather_facts: false
18 vars:
19 image_manifest_file: /tmp/atmosphere_images.yml
20 tasks:
21 - name: Check if the image manifest file exists
22 ansible.builtin.stat:
23 path: "{{ image_manifest_file }}"
24 register: image_manifest_file_stat
25
26 - name: Assert that the image manifest file exists
27 ansible.builtin.assert:
28 that:
29 - image_manifest_file_stat.stat.exists
30 - image_manifest_file_stat.stat.isreg
31 msg: "The image manifest file '{{ image_manifest_file }}' does not exist"