mirror of https://github.com/ceph/ceph-ansible.git
Fix auto uuid generation
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>pull/152/head
parent
9104762137
commit
621df22a4a
|
@ -1,4 +1,4 @@
|
|||
.vagrant
|
||||
*.vdi
|
||||
*.keyring
|
||||
fetch/4a158d27-f750-41d5-9e7f-26ce4c9d2d45
|
||||
fetch/*
|
||||
|
|
|
@ -23,11 +23,15 @@
|
|||
register: socket
|
||||
|
||||
- name: Generate cluster UUID
|
||||
shell: "uuidgen | tee /etc/ceph/ceph_cluster_uuid.conf" creates=/etc/ceph/ceph_cluster_uuid.conf
|
||||
shell: uuidgen | tee fetch/ceph_cluster_uuid.conf creates=fetch/ceph_cluster_uuid.conf
|
||||
connection: local
|
||||
sudo: false
|
||||
register: cluster_uuid
|
||||
|
||||
- name: Read cluster UUID if it already exists
|
||||
command: cat /etc/ceph/ceph_cluster_uuid.conf removes=/etc/ceph/ceph_cluster_uuid.conf
|
||||
command: cat fetch/ceph_cluster_uuid.conf removes=fetch/ceph_cluster_uuid.conf
|
||||
connection: local
|
||||
sudo: false
|
||||
register: cluster_uuid
|
||||
|
||||
- name: Generate Ceph configuration file
|
||||
|
|
Loading…
Reference in New Issue