From efb8e68c6953890c2ed9852fd35ea3946976be56 Mon Sep 17 00:00:00 2001 From: Yin Jifeng Date: Tue, 14 Apr 2015 21:46:49 +0800 Subject: [PATCH] make RGW directory use same host var ansible_fqdn is full domain, while hostname may be in short form --- roles/ceph-radosgw/tasks/pre_requisite.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-radosgw/tasks/pre_requisite.yml b/roles/ceph-radosgw/tasks/pre_requisite.yml index 98148972f..374d61dd2 100644 --- a/roles/ceph-radosgw/tasks/pre_requisite.yml +++ b/roles/ceph-radosgw/tasks/pre_requisite.yml @@ -1,7 +1,7 @@ --- - name: Create RGW directory file: > - path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_fqdn }} + path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }} state=directory owner=root group=root @@ -18,7 +18,7 @@ - name: Activate RGW with upstart file: > - path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_fqdn }}/{{ item }} + path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}/{{ item }} state=touch owner=root group=root -- 2.39.5