Wende loop nur auf notwendige Tasks an
This commit is contained in:
parent
a6fea170a4
commit
8d720be3f7
1 changed files with 39 additions and 7 deletions
|
@ -1,19 +1,51 @@
|
|||
---
|
||||
- import_tasks: version.yml
|
||||
- name: "Versionen prüfen"
|
||||
include_tasks: version.yml
|
||||
tags: version
|
||||
loop: "{{ instances }}"
|
||||
loop_control:
|
||||
loop_var: instance
|
||||
|
||||
- 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
|
||||
- import_tasks: php.yml
|
||||
- import_tasks: apache.yml
|
||||
loop: "{{ instances }}"
|
||||
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
|
||||
|
||||
- name: "Nextcloud-Task"
|
||||
- name: "Nextcloud einrichten"
|
||||
include_tasks: nextcloud.yml
|
||||
tags: nextcloud
|
||||
loop: "{{ instances }}"
|
||||
loop_control:
|
||||
loop_var: instance
|
||||
when: nc_is_installed.stat.exists == False
|
||||
|
||||
- import_tasks: fixes.yml
|
||||
- name: "Hotfixes installieren"
|
||||
include_tasks: fixes.yml
|
||||
tags: fixes
|
||||
loop: "{{ instances }}"
|
||||
loop_control:
|
||||
loop_var: instance
|
||||
|
|
Loading…
Reference in a new issue