parent
3b0205c3af
commit
8a2246d5c2
5 changed files with 45 additions and 3 deletions
@ -0,0 +1,14 @@ |
||||
--- |
||||
|
||||
- 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 |
Loading…
Reference in new issue