From: Guillaume Abrioux Date: Tue, 9 Oct 2018 20:17:37 +0000 (-0400) Subject: ceph-ansible: fetch ceph config file on failure X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7d86f9ba4da75ec4de4e3980614fe9aa19836554;p=ceph-build.git ceph-ansible: fetch ceph config file on failure Let's try to get ceph configuration file on failure, it can be useful at some point. Signed-off-by: Guillaume Abrioux --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index b0bef7f2..508ff146 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -783,6 +783,13 @@ write_collect_logs_playbook() { flat: yes failed_when: false with_items: "{{ ceph_logs.stdout_lines }}" + + - name: collect ceph configuration file + fetch: + src: "{{ ceph_conf_key_directory }}/{{ cluster }}.conf" + dest: "{{ archive_path }}/{{ inventory_hostname }}/" + fail_on_missing: no + flat: yes EOF }