checks.yml 940 Bytes
Newer Older
alexander lunev's avatar
alexander lunev committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- block:
  - name: fail if noc is not selected
    fail:
      msg: "ICQsender role have to be set with noc role to get own sources."
    when:
      - has_svc_noc is not defined
    tags:
      - checks

  - name: warn if icqsender token is not set
    debug:
      msg: |
        ICQsender role have to work only if ICQ token provided.
        Setup ICQ token or disable icqsender service.
        Deploy will continue in 1 minute
    when:
      - icqsender_token is not defined or not icqsender_token

  - name: timeout for 1 min
    pause:
      minutes: 1
    when:
      - icqsender_token is not defined or not icqsender_token

  when:
    - has_svc_icqsender is defined
  tags:
    - checks
30
31
32
33
34
35
36
37
38

- name: fail if "mx" is not selected
  fail:
    msg: "ICQsender service works with 'mx' service. Please setup at least one somewhere."
  when:
    - has_svc_icqsender is defined
    - "'svc-mx-exec' not in groups"
  tags:
    - checks