Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the inventory_hostname as the container_name. Set container_name as a host var for each container in the test inventory. Change-Id: Iff8afbad1ef28b288c4ea403e6d4dc811b4b8a45
This commit is contained in:
parent
0b9d6a4178
commit
e5ea3378ad
|
@ -13,7 +13,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
container_name: "{{ inventory_hostname }}"
|
||||
|
||||
properties:
|
||||
service_name: "{{ inventory_hostname }}"
|
||||
|
|
|
@ -5,6 +5,7 @@ ansible_user: root
|
|||
|
||||
physical_host: localhost
|
||||
|
||||
container_name: container1
|
||||
container_tech: nspawn
|
||||
|
||||
container_networks:
|
||||
|
|
|
@ -5,6 +5,7 @@ ansible_user: root
|
|||
|
||||
physical_host: localhost
|
||||
|
||||
container_name: container2
|
||||
container_tech: nspawn
|
||||
|
||||
container_networks:
|
||||
|
|
|
@ -5,6 +5,7 @@ ansible_user: root
|
|||
|
||||
physical_host: localhost
|
||||
|
||||
container_name: container3
|
||||
container_tech: nspawn
|
||||
|
||||
container_networks:
|
||||
|
|
Loading…
Reference in New Issue