diff --git a/ansible/roles/kolla-openstack/molecule/default/create.yml b/ansible/roles/kolla-openstack/molecule/default/create.yml index 4f02a8194ee7825f872d4c528e0d1231ea9b2b1c..64257aa47009006c4f7605781dbba0a29669f211 100644 --- a/ansible/roles/kolla-openstack/molecule/default/create.yml +++ b/ansible/roles/kolla-openstack/molecule/default/create.yml @@ -29,6 +29,7 @@ build: path: "{{ molecule_ephemeral_directory }}" dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}" + network: host force_source: "{{ item.item.force | default(true) }}" force_tag: "{{ item.item.force | default(true) }}" with_items: "{{ platforms.results }}" diff --git a/ansible/roles/kolla-openstack/molecule/default/molecule.yml b/ansible/roles/kolla-openstack/molecule/default/molecule.yml index 331c131d6ce20ac15004dc2f81897bb1a88091c7..82905cf0aeaf1eb867941c55bd1d09e4c758806d 100644 --- a/ansible/roles/kolla-openstack/molecule/default/molecule.yml +++ b/ansible/roles/kolla-openstack/molecule/default/molecule.yml @@ -10,6 +10,7 @@ lint: | platforms: - name: centos-stream8 image: quay.io/centos/centos:stream8 + network_mode: host provisioner: name: ansible lint: diff --git a/ansible/roles/kolla-openstack/molecule/enable-everything/create.yml b/ansible/roles/kolla-openstack/molecule/enable-everything/create.yml index 7cb2f843cdc8efc4315e2385096f5567498e32f4..bbb81a13f6aea4e7a3776213e6e7c5aa12c25189 100644 --- a/ansible/roles/kolla-openstack/molecule/enable-everything/create.yml +++ b/ansible/roles/kolla-openstack/molecule/enable-everything/create.yml @@ -30,6 +30,7 @@ build: path: "{{ molecule_ephemeral_directory }}" dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}" + network: host force_source: "{{ item.item.force | default(true) }}" force_tag: "{{ item.item.force | default(true) }}" with_items: "{{ platforms.results }}" diff --git a/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml b/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml index 45574e2e9edae7f182c5020c494336c3b16ae4be..13031d1b0aa26479d93ad04fffddc3693c84d8ef 100644 --- a/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml +++ b/ansible/roles/kolla-openstack/molecule/enable-everything/molecule.yml @@ -10,6 +10,7 @@ lint: | platforms: - name: centos-stream8 image: quay.io/centos/centos:stream8 + network_mode: host provisioner: name: ansible inventory: