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:
Jimmy McCrory 2018-10-20 15:28:29 -07:00
parent 0b9d6a4178
commit e5ea3378ad
4 changed files with 3 additions and 1 deletions

View File

@ -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 }}"

View File

@ -5,6 +5,7 @@ ansible_user: root
physical_host: localhost
container_name: container1
container_tech: nspawn
container_networks:

View File

@ -5,6 +5,7 @@ ansible_user: root
physical_host: localhost
container_name: container2
container_tech: nspawn
container_networks:

View File

@ -5,6 +5,7 @@ ansible_user: root
physical_host: localhost
container_name: container3
container_tech: nspawn
container_networks: