All checks were successful
continuous-integration/drone/tag Build is passing
20 lines
557 B
YAML
20 lines
557 B
YAML
---
|
|
|
|
- name: Check if libreschool-client is installed
|
|
shell: dpkg-query -W -f='${Status}' libreschool-client | grep 'install ok installed'
|
|
register: lsclient_installed
|
|
failed_when: no
|
|
changed_when: no
|
|
|
|
- name: Updating libreschool-client
|
|
ini_file:
|
|
path: /etc/libreschool-client/libreschool-client.conf
|
|
option: last_config
|
|
section: server
|
|
no_extra_spaces: yes
|
|
value: "{{ configuration_timestamp }}"
|
|
notify: rerun-libreschool-client
|
|
when: lsclient_installed.rc == 0
|
|
|
|
# TODO: ini_file always return "changed" even if it's not
|