Skip to content

Commit

Permalink
ignore checksum validation while fetching key
Browse files Browse the repository at this point in the history
This ansible task is failing while fetching keys for
multiple hypervisors when the deployment is using VMs
on multi hypervisors for overcloud deployment.
So we disable checksum validation for multi hypervisor
environment.

GH-397

Change-Id: Ic6b47510ee02668e688bf4148dd02fc018983b98
  • Loading branch information
venkataanil committed Feb 9, 2021
1 parent bfbc4a5 commit 9b88ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/virsh/prepare_hypervisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@
when: not result.stat.exists | bool

- name: copy server private key from hypervisor for SSH proxy
vars:
validate_checksum: "{{ (groups.hypervisor|count == 1) | ternary('yes', 'no') }}"
fetch:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
flat: yes
validate_checksum: "{{ validate_checksum }}"
with_items:
- {src: "~/.ssh/id_rsa", dest: "{{ inventory_dir }}/id_rsa"}
- {src: "~/.ssh/id_rsa.pub", dest: "{{ inventory_dir }}/id_rsa.pub"}
Expand Down

0 comments on commit 9b88ed8

Please sign in to comment.