ansible_fqdn is full domain, while hostname may be in short form
---
- 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
- 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