ctucx.git: ansible-configs

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

commit 555cc68c5250996820e4beea5405f1c806157fd7
parent 2fb4d4dae91ed83df1346775bc275e3c3342cd5f
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 3 Feb 2021 18:19:57 +0100

update some role-checks
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/roles/oeffi-web/tasks/main.yml b/roles/oeffi-web/tasks/main.yml
@@ -9,6 +9,12 @@
     - services.oeffi_web.enable is true
     - ansible_distribution != "Alpine" 
 
+- fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!"
+  when:
+    - services.oeffi_web.enable is true
+    - system.enableOwnRepos is false
+
+
 - fail: msg="Option 'services.oeffi_web.instances' has to be set!"
   when:
     - services.oeffi_web.enable is true
diff --git a/roles/oeffisearch/tasks/main.yml b/roles/oeffisearch/tasks/main.yml
@@ -8,6 +8,12 @@
     - services.oeffisearch.enable is true
     - ansible_distribution != "Alpine" 
 
+- fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!"
+  when:
+    - services.oeffisearch.enable is true
+    - system.enableOwnRepos is false
+
+
 - fail: msg="Option 'services.oeffisearch.instances' has to be set!"
   when:
     - services.oeffisearch.enable is true
diff --git a/roles/pleroma/tasks/checks.yml b/roles/pleroma/tasks/checks.yml
@@ -4,6 +4,11 @@
   when:
     - ansible_distribution != "Alpine" 
 
+- fail: msg="This Role only works when Option 'system.enableOwnRepos' is true!"
+  when:
+    - system.enableOwnRepos is false
+
+
 - fail: msg="This role depends on postgres!"
   when:
     - services.postgresql.enable is not defined or services.postgresql.enable is not true