checks.yml 1.08 KB
Newer Older
Aleksey Shirokih's avatar
Aleksey Shirokih committed
1
---
2
3
4
5
6
7
- block:
    - name: fail if noc repo is not set
      fail:
        msg: "Noc repo is empty. What an awful pity fatal fail. Set noc repo on noc service it tower."
      when:
        - noc_repo == '' or noc_repo is not defined
Aleksey Shirokih's avatar
Aleksey Shirokih committed
8

9
10
11
12
13
14
15
16
17
18
19
20
21
22
    - name: fail if noc version is not set
      fail:
        msg: "Noc version is empty. What an awful pity fatal fail. Set noc version on noc service it tower."
      when:
        - noc_version == '' or noc_version is not defined

    - name: fail if noc root is not set
      fail:
        msg: "Noc root is empty. What an awful pity fatal fail. Set noc root on noc service it tower."
      when:
        - noc_root == '' or noc_root is not defined

    - name: check if noc_root exists
      stat:
EKbfh's avatar
EKbfh committed
23
        path: "{{ noc_root }}"
24
25
      register: noc_root_state

Aleksey Shirokih's avatar
Aleksey Shirokih committed
26
27
  when:
    - has_svc_noc is defined
Aleksey Shirokih's avatar
Aleksey Shirokih committed
28
29
  tags:
    - checks
30
31
32
33

- name: Warn about omap is selected
  fail:
    msg: |
34
      Be aware that omap service is deprecated and should not be used.
35
36
37
38
39
      Read https://kb.nocproject.org/x/OwB2Ag for more details.
  when:
    - has_svc_omap is defined
  tags:
    - checks