diff --git a/roles/edpm_nova/molecule/default/prepare.yml b/roles/edpm_nova/molecule/default/prepare.yml index 023ff6df3..cc3efe3e0 100644 --- a/roles/edpm_nova/molecule/default/prepare.yml +++ b/roles/edpm_nova/molecule/default/prepare.yml @@ -81,3 +81,11 @@ owner: root group: root mode: 0755 + - name: Create ssh_known_hosts file + become: true + ansible.builtin.file: + path: '/etc/ssh/ssh_known_hosts' + state: touch + owner: root + group: root + mode: 0655 diff --git a/roles/edpm_nova/molecule/default/verify.yml b/roles/edpm_nova/molecule/default/verify.yml index 779c5dbea..6e91f7d9a 100644 --- a/roles/edpm_nova/molecule/default/verify.yml +++ b/roles/edpm_nova/molecule/default/verify.yml @@ -16,6 +16,7 @@ - "/var/lib/openstack/config/containers" - "/var/log/containers" - "/var/log/containers/stdouts" + - "/etc/ssh/ssh_known_hosts" # extrenal deps - "/var/lib/openstack/config/ceph" # nova directories diff --git a/roles/edpm_nova/templates/nova_compute.json.j2 b/roles/edpm_nova/templates/nova_compute.json.j2 index a69124ca0..0287884af 100644 --- a/roles/edpm_nova/templates/nova_compute.json.j2 +++ b/roles/edpm_nova/templates/nova_compute.json.j2 @@ -22,6 +22,7 @@ "/etc/multipath:/etc/multipath:z", "/etc/multipath.conf:/etc/multipath.conf:ro", "/etc/iscsi:/etc/iscsi:ro", - "/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro" + "/var/lib/openstack/config/ceph:/var/lib/kolla/config_files/ceph:ro", + "/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro" ] }