Skip to content

Commit 7602882

Browse files
Improve bootstrap check (#42)
* Improve bootstrap check Unfortunately sometimes service_facts does not list ceph.target, although it's there. Let's check for ^ceph.* in systemd unit names * Bump version Co-authored-by: Piotr Parczewski <[email protected]>
1 parent 900c96b commit 7602882

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace: "stackhpc"
22
name: "cephadm"
3-
version: "1.5.0"
3+
version: "1.5.1"
44
readme: "README.md"
55
authors:
66
- "Michal Nasiadka"

roles/cephadm/tasks/prechecks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
- name: Set cephadm_bootstrap
66
set_fact:
7-
cephadm_bootstrap: "{{ ansible_facts.services['ceph.target'] is not defined }}"
7+
cephadm_bootstrap: "{{ ansible_facts.services | dict2items | selectattr('key', 'match', '^ceph.*') | list | length == 0 }}"

0 commit comments

Comments
 (0)