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 - name: Create RGW directory
file: > file: >
path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_fqdn }} path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}
state=directory state=directory
owner=root owner=root
group=root group=root
@ -18,7 +18,7 @@
- name: Activate RGW with upstart - name: Activate RGW with upstart
file: > file: >
path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_fqdn }}/{{ item }} path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}/{{ item }}
state=touch state=touch
owner=root owner=root
group=root group=root