You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
420 B
15 lines
420 B
![]()
4 years ago
|
---
|
||
|
|
||
|
- name: Detect installed version
|
||
|
shell: rpm -q --qf "%{version}-%{release}" onlyoffice-documentserver || echo 0
|
||
|
args:
|
||
|
warn: False
|
||
|
register: oo_current_version
|
||
|
changed_when: False
|
||
|
#when: oo_current_version | string == '0' # Only detect again on first install
|
||
|
tags: oo
|
||
|
|
||
|
- name: Write current version
|
||
|
copy: content={{ oo_current_version.stdout }} dest=/etc/onlyoffice/meta/ansible_version
|
||
|
tags: oo
|