2016-03-09 04:57:18 +08:00
---
2018-08-10 17:08:14 +08:00
- name : test if calamari-server is installed
command : rpm -q --qf "%{VERSION}\n" calamari-server
args :
warn : no
ignore_errors : true
check_mode : no
changed_when : false
register : calamari_server_rpm_state
2016-03-09 04:57:18 +08:00
- name : install calamari server
2016-11-28 22:16:56 +08:00
package :
name : calamari-server
2018-08-10 17:08:14 +08:00
state : "{{ 'latest' if (calamari_server_rpm_state.stdout.split('.')[0] is version(ceph_rhcs_version, '<') and not calamari_server_rpm_state.failed) else (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
2016-03-09 04:57:18 +08:00
tags :
- package-install
2017-03-13 20:46:38 +08:00
- name : increase calamari logging level when debug is on
ini_file :
dest : /etc/calamari/calamari.conf
section : "{{ item }}"
option : log_level
value : DEBUG
with_items :
- cthulhu
- calamari_web
when : calamari_debug
2016-03-09 04:57:18 +08:00
- name : initialize the calamari server api
command : calamari-ctl initialize