update: import ceph-defaults role in first play

Typical error:

```
fatal: [mon0]: FAILED! =>
  msg: |-
    The conditional check 'not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])' failed. The error was: error while evaluating conditional (not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])): 'client_group_name' is undefined
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/4551/head
Guillaume Abrioux 2019-10-04 11:58:28 +02:00
parent 7fdf8b62be
commit 8138d4193c
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@
tasks:
- debug: msg="gather facts on all Ceph hosts for following reference"
- import_role:
name: ceph-defaults
- name: gather facts
setup:
when: not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])