From 7d86f9ba4da75ec4de4e3980614fe9aa19836554 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 9 Oct 2018 16:17:37 -0400 Subject: [PATCH] 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 --- scripts/build_utils.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 } -- 2.39.5