From c382aa80ccc0d84ea78fc7af23f73a9323e8ede2 Mon Sep 17 00:00:00 2001 From: Amir Nikpour Date: Wed, 17 Jul 2024 08:12:44 +0330 Subject: [PATCH] cephadm-adopt: add cephadm ssh config option Add task to set customized ssh config for cephadm Signed-off-by: Amir Nikpour (cherry picked from commit e4ab45d756d3271af1429103a942c534e46fd4b9) --- infrastructure-playbooks/cephadm-adopt.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index facac09d4c..8fb2beba70 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -294,6 +294,13 @@ run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" + - name: Set cephadm ssh config + ansible.builtin.command: "{{ ceph_cmd }} cephadm set-ssh-config -i {{ cephadm_ssh_config_path }}" + changed_when: false + run_once: true + delegate_to: "{{ groups[mon_group_name][0] }}" + when: cephadm_ssh_config_path is defined + - name: Run cephadm prepare-host ansible.builtin.command: cephadm prepare-host changed_when: false