Try something else
Change-Id: I580815e255ac8c4d02d717557b12cc1951793e1f
diff --git a/playbooks/setup-openstack-storpool/pre.yaml b/playbooks/setup-openstack-storpool/pre.yaml
index 5c3b858..b5b5b3d 100644
--- a/playbooks/setup-openstack-storpool/pre.yaml
+++ b/playbooks/setup-openstack-storpool/pre.yaml
@@ -343,8 +343,8 @@
- name: Provision StorPool Deployment Configuration 3
no_log: true
- ansible.builtin.shell:
- argv: [ "ssh-keyscan", "-H", "{{ node }}", ">>", "/home/ubuntu/.ssh/known_hosts" ]
+ ansible.builtin.command:
+ argv: [ "ssh", "-o", "StrictHostKeyChecking=accept-new", "{{ item }}" ]
loop:
- [ "{{ storpool_node_ip }}" ]
- [ "{{ openstack_node_ip }}" ]