checks.yml 461 Bytes
Newer Older
Aleksey Shirokih's avatar
Aleksey Shirokih committed
1
---
2
3
4
5
6
7
- name: fail if noc is not selected
  fail:
    msg: "Mailsender role have to be set with noc role to get own sources."
  when:
    - has_svc_mailsender is defined
    - has_svc_noc is not defined
Aleksey Shirokih's avatar
Aleksey Shirokih committed
8
9
  tags:
    - checks
10
11
12
13
14
15
16
17
18

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