Wende loop nur auf notwendige Tasks an

This commit is contained in:
phil 2021-06-26 02:40:46 +02:00
parent a6fea170a4
commit 8d720be3f7

View file

@ -1,19 +1,51 @@
--- ---
- import_tasks: version.yml - name: "Versionen prüfen"
include_tasks: version.yml
tags: version tags: version
loop: "{{ instances }}"
loop_control:
loop_var: instance
- import_tasks: packages.yml - import_tasks: packages.yml
- import_tasks: gateway.yml
- import_tasks: database.yml - name: "Gateway einrichten"
include_tasks: gateway.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Datenbank einrichten"
include_tasks: database.yml
tags: database tags: database
- import_tasks: php.yml loop: "{{ instances }}"
- import_tasks: apache.yml loop_control:
loop_var: instance
- name: "PHP-FPM einrichten"
include_tasks: php.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- name: "Webserver einrichten"
include_tasks: apache.yml
loop: "{{ instances }}"
loop_control:
loop_var: instance
- import_tasks: redis.yml - import_tasks: redis.yml
- name: "Nextcloud-Task" - name: "Nextcloud einrichten"
include_tasks: nextcloud.yml include_tasks: nextcloud.yml
tags: nextcloud tags: nextcloud
loop: "{{ instances }}"
loop_control:
loop_var: instance
when: nc_is_installed.stat.exists == False when: nc_is_installed.stat.exists == False
- import_tasks: fixes.yml - name: "Hotfixes installieren"
include_tasks: fixes.yml
tags: fixes tags: fixes
loop: "{{ instances }}"
loop_control:
loop_var: instance