Merge pull request #1256 from clwells/rgw-ceph-conf-zone-fix

Using ini_file + ansible_hostname for rgw_zone setting
pull/1204/merge
Sébastien Han 2017-01-30 14:37:53 +01:00 committed by GitHub
commit 9112895334
1 changed files with 4 additions and 5 deletions

View File

@ -17,11 +17,10 @@
# Continue with common tasks
- name: add zone to rgw stanza in ceph.conf
lineinfile:
ini_file:
dest: "/etc/ceph/{{ cluster }}.conf"
regexp: "{{ ansible_host }}"
insertafter: "^[client.rgw.{{ ansible_host }}]"
line: "rgw_zone = {{ rgw_zone }}"
state: present
section: "client.rgw.{{ ansible_hostname }}"
option: "rgw_zone"
value: "{{ rgw_zone }}"
notify:
- restart rgw