mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1278 from ceph/backport-1256
Backport: Using ini_file with ansible_hostname to ensure each INI block gets th…pull/1279/head
commit
d7e326b86f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue