diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index 498c5fa92..0f48c9ebd 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -1,4 +1,13 @@ --- +- name: check if it is atomic host + stat: + path: /run/ostree-booted + register: stat_ostree + +- name: set_fact is_atomic + set_fact: + is_atomic: "{{ stat_ostree.stat.exists }}" + - name: set_fact monitor_name ansible_hostname set_fact: monitor_name: "{{ ansible_hostname }}"