---
- name: Include bootstrap
- ansible.builtin.include_tasks: bootstrap.yml
-#- name: Include inventory (last task)
-# ansible.builtin.include_tasks: inventory.yml
+ block:
+ - ansible.builtin.include_tasks: bootstrap.yml
+ remote_user: root
+- name: OpenLDAP-Server
+ ansible.builtin.include_tasks: openldap.yml
+ when: ldap in group_names
+- name: Samba-Fileserver
+ ansible.builtin.include_tasks: samba.yml
+ when: samba in group_names
+- name: Forgejo Git- und Projekte-Server
+ ansible.builtin.include_tasks: forgejo.yml
+ when: forgejo in group_names
+#
+# Inventory immer als letztes
+- name: Include inventory (last task)
+ ansible.builtin.include_tasks: inventory.yml