cephadm-adopt: add cephadm ssh config option

Add task to set customized ssh config for cephadm

Signed-off-by: Amir Nikpour <amnik.free@gmail.com>
pull/7609/head
Amir Nikpour 2024-07-17 08:12:44 +03:30 committed by Seena Fallah
parent 823700bc1b
commit e4ab45d756
1 changed files with 7 additions and 0 deletions

View File

@ -294,6 +294,13 @@
run_once: true run_once: true
delegate_to: "{{ groups[mon_group_name][0] }}" 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 - name: Run cephadm prepare-host
ansible.builtin.command: cephadm prepare-host ansible.builtin.command: cephadm prepare-host
changed_when: false changed_when: false