make RGW directory use same host var

ansible_fqdn is full domain, while hostname may be in short form
pull/250/head
Yin Jifeng 2015-04-14 21:46:49 +08:00
parent 72269eb5a2
commit efb8e68c69
1 changed files with 2 additions and 2 deletions

View File

@ -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