Update role to accomodate testing change

The nspawn container create role needs to have it's tests updated
because local connections that are delegated to remove containers no
longer works as it once did. This change simply uses the all_containers
group and the known connection plugin to ensure we're able to run the
same tests.

Depends-On: Iab422c718d789ef13b8ec55938fdb7e73e40061b
Change-Id: I4d845ef065745e93651ac1853c05747bf26d6631
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-06-21 00:02:04 -05:00 committed by Kevin Carter (cloudnull)
parent ff2672b181
commit 7e2c1dd197
1 changed files with 2 additions and 7 deletions

View File

@ -14,8 +14,8 @@
# limitations under the License.
- name: Test containers
hosts: localhost
connection: local
hosts: all_containers
gather_facts: false
become: true
tasks:
- name: Test connectivity to container gateway
@ -24,8 +24,6 @@
retries: 3
delay: 5
until: machinectl_ping is success
delegate_to: "{{ item }}"
with_items: "{{ groups['all_containers'] }}"
tags:
- skip_ansible_lint
@ -35,8 +33,6 @@
retries: 3
delay: 5
until: machinectl_ping is success
delegate_to: "{{ item }}"
with_items: "{{ groups['all_containers'] }}"
tags:
- skip_ansible_lint
@ -46,6 +42,5 @@
retries: 3
delay: 5
until: machinectl_ping is success
delegate_to: container3
tags:
- skip_ansible_lint