mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1256 from clwells/rgw-ceph-conf-zone-fix
Using ini_file + ansible_hostname for rgw_zone settingpull/1204/merge
commit
9112895334
|
@ -17,11 +17,10 @@
|
||||||
|
|
||||||
# Continue with common tasks
|
# Continue with common tasks
|
||||||
- name: add zone to rgw stanza in ceph.conf
|
- name: add zone to rgw stanza in ceph.conf
|
||||||
lineinfile:
|
ini_file:
|
||||||
dest: "/etc/ceph/{{ cluster }}.conf"
|
dest: "/etc/ceph/{{ cluster }}.conf"
|
||||||
regexp: "{{ ansible_host }}"
|
section: "client.rgw.{{ ansible_hostname }}"
|
||||||
insertafter: "^[client.rgw.{{ ansible_host }}]"
|
option: "rgw_zone"
|
||||||
line: "rgw_zone = {{ rgw_zone }}"
|
value: "{{ rgw_zone }}"
|
||||||
state: present
|
|
||||||
notify:
|
notify:
|
||||||
- restart rgw
|
- restart rgw
|
||||||
|
|
Loading…
Reference in New Issue