add task name
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
---
|
---
|
||||||
- name: "Run Update-Check"
|
- name: "{{ nextcloud_path }}: Run Update-Check"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ nextcloud_user }}"
|
become_user: "{{ nextcloud_user }}"
|
||||||
shell:
|
shell:
|
||||||
cmd: "{{ php_binary }} {{ php_arguments }} {{ nextcloud_path }}/occ update:check --no-interaction --no-warnings"
|
cmd: "{{ php_binary }} {{ php_arguments }} {{ nextcloud_path }}/occ update:check --no-interaction --no-warnings"
|
||||||
register: nextcloud_update_check_output
|
register: nextcloud_update_check_output
|
||||||
|
|
||||||
- name: "Parse Update-Check Output"
|
- name: "{{ nextcloud_path }}: Parse Update-Check Output"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
nextcloud_update_needed: "{{ nextcloud_update_check_output.stdout | regex_search(update_regex) }}"
|
nextcloud_update_needed: "{{ nextcloud_update_check_output.stdout | regex_search(update_regex) }}"
|
||||||
vars:
|
vars:
|
||||||
update_regex: 'Nextcloud [\d\.]+ is available'
|
update_regex: 'Nextcloud [\d\.]+ is available'
|
||||||
|
|
||||||
- name: "Main Update block"
|
- name: "{{ nextcloud_path }}: Main Update block"
|
||||||
when: "nextcloud_update_needed"
|
when: "nextcloud_update_needed"
|
||||||
block:
|
block:
|
||||||
- name: "Run Update"
|
- name: "Run Update"
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
when: nextcloud_update_needed
|
when: nextcloud_update_needed
|
||||||
|
|
||||||
|
|
||||||
- name: "Run Maintenance tasks (after update)"
|
- name: "{{ nextcloud_path }}: Run Maintenance tasks (after update)"
|
||||||
include_tasks: "occ_command.yml"
|
include_tasks: "occ_command.yml"
|
||||||
vars:
|
vars:
|
||||||
occ_command: "{{ item }}"
|
occ_command: "{{ item }}"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
- "maintenance:repair --no-interaction"
|
- "maintenance:repair --no-interaction"
|
||||||
when: "nextcloud_update_needed"
|
when: "nextcloud_update_needed"
|
||||||
|
|
||||||
- name: "Run Maintenance tasks"
|
- name: "{{ nextcloud_path }}: Run Maintenance tasks"
|
||||||
include_tasks: "occ_command.yml"
|
include_tasks: "occ_command.yml"
|
||||||
vars:
|
vars:
|
||||||
occ_command: "{{ item }}"
|
occ_command: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user