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 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
---

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

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

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

- fail: msg="Option 'services.ctucxGallery.site.name' has to be set!"
  when:
    - services.ctucxGallery.site.name is not defined 

- fail: msg="Option 'services.ctucxGallery.site.author' has to be set!"
  when:
    - services.ctucxGallery.site.author is not defined 

- fail: msg="Option 'services.ctucxGallery.site.description' has to be set!"
  when:
    - services.ctucxGallery.site.description is not defined 

- fail: msg="Option 'services.ctucxGallery.site.tags' has to be set!"
  when:
    - services.ctucxGallery.site.tags is not defined 

- fail: msg="Nginx role has to be enabled when using nginx options!"
  when:
    - services.ctucxGallery.nginx.enable is true
    - services.nginx.enable is false

- fail: msg="Option 'services.ctucxGallery.nginx.domain' has to be set when using nginx!"
  when:
    - services.ctucxGallery.nginx.enable is defined
    - services.ctucxGallery.nginx.enable is true
    - services.ctucxGallery.nginx.domain is not defined

- fail: msg="Option 'services.ctucxGallery.nginx.sslOnly' has to be set when using nginx!"
  when:
    - services.ctucxGallery.nginx.enable is defined
    - services.ctucxGallery.nginx.enable is true
    - services.ctucxGallery.nginx.sslOnly is not defined

- fail: msg="Option 'services.ctucxGallery.nginx.ssl.cert' has to be set when using nginx with ssl!"
  when:
    - services.ctucxGallery.nginx.enable is defined
    - services.ctucxGallery.nginx.enable is true
    - services.ctucxGallery.nginx.ssl.enable is defined
    - services.ctucxGallery.nginx.ssl.enable is true
    - services.ctucxGallery.nginx.ssl.cert is not defined

- fail: msg="Option 'services.ctucxGallery.nginx.ssl.privkey' has to be set when using nginx with ssl!"
  when:
    - services.ctucxGallery.nginx.enable is defined
    - services.ctucxGallery.nginx.enable is true
    - services.ctucxGallery.nginx.ssl.enable is defined
    - services.ctucxGallery.nginx.ssl.enable is true
    - services.ctucxGallery.nginx.ssl.privkey is not defined