Use cluster_group variable for paths

Instead of trying to automagic this group out of the Ansible hostvars,
just make it explicitly defined in the group_vars to avoid any
confusion.
This commit is contained in:
2020-08-06 13:20:14 -04:00
parent a488f62ef8
commit 6b8232d38e
4 changed files with 7 additions and 3 deletions

View File

@ -75,7 +75,7 @@
- name: collect bootstrapped Ceph files into the role
fetch:
src: /tmp/ceph-bootstrap/{{ item }}
dest: roles/pvc/files/ceph/{{ hostvars[inventory_hostname].group_names[0] }}/ceph/
dest: roles/pvc/files/ceph/{{ cluster_group }}/ceph/
flat: yes
with_items:
- ceph.conf