]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: add cephadm ssh config option
authorAmir Nikpour <amnik.free@gmail.com>
Wed, 17 Jul 2024 04:42:44 +0000 (08:12 +0330)
committerSeena Fallah <seenafallah@gmail.com>
Sun, 25 Aug 2024 09:01:35 +0000 (11:01 +0200)
Add task to set customized ssh config for cephadm

Signed-off-by: Amir Nikpour <amnik.free@gmail.com>
infrastructure-playbooks/cephadm-adopt.yml

index facac09d4c87f8211863168e5be61d08dd758e17..8fb2beba709733cd1b37f24a63e6c281d7a67562 100644 (file)
       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