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 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 ---

- connection: local
  fail: msg="Option 'services.frpc.serverAddress' has to be set!"
  when:
    - services.frpc.serverAddress is not defined

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

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

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


- fail: msg="Option 'services.frpc.dashboard.port' has to be set when 'services.frpc.dashboard.enable' is true!"
  when:
    - services.frpc.dashboard.enable is defined
    - services.frpc.dashboard.enable is true
    - services.frpc.dashboard.port is not defined

- fail: msg="Option 'services.frpc.dashboard.user' has to be set when 'services.frpc.dashboard.enable' is true!"
  when:
    - services.frpc.dashboard.enable is defined
    - services.frpc.dashboard.enable is true
    - services.frpc.dashboard.user is not defined

- fail: msg="Option 'services.frpc.dashboard.passwd' has to be set when 'services.frpc.dashboard.enable' is true!"
  when:
    - services.frpc.dashboard.enable is defined
    - services.frpc.dashboard.enable is true
    - services.frpc.dashboard.passwd is not defined