ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 ---

- fail: msg="This Role currently only works on AlpineLinux!"
  when:
    - ansible_distribution != "Alpine" 

- fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!"
  when:
    - system.enableOwnRepos is false
    - services.mbusd.enable is true

- fail: msg="Option 'services.maddy.hostname' has to be set!"
  when:
    - services.maddy.hostname is not defined

- fail: msg="Option 'services.maddy.ssl_cert' has to be set!"
  when:
    - services.maddy.ssl_cert is not defined

- fail: msg="Option 'services.maddy.ssl_privkey' has to be set!"
  when:
    - services.maddy.ssl_privkey is not defined

#todo: check that ssl files exist