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:
@ -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
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
- name: install configurations
|
||||
copy:
|
||||
src: ceph/{{ hostvars[inventory_hostname].group_names[0] }}/ceph/{{ item }}
|
||||
src: ceph/{{ cluster_group }}/ceph/{{ item }}
|
||||
dest: /etc/ceph/{{ item }}
|
||||
owner: ceph
|
||||
group: ceph
|
||||
|
Reference in New Issue
Block a user