mirror of https://github.com/ansible/ansible.git
docker_swarm inventory plugin: extend tests (#53913)
* Extend tests. * Update BOTMETA so that docker* inventory tests are associated with .pull/53915/head
parent
f20575e2a8
commit
35b295f6af
@ -0,0 +1,5 @@
|
||||
---
|
||||
plugin: docker_swarm
|
||||
host: unix://var/run/docker.sock
|
||||
verbose_output: no
|
||||
include_host_uri: yes
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
- hosts: all
|
||||
connection: local # otherwise Ansible will complain that it cannot connect via ssh to 127.0.0.1:22
|
||||
tasks:
|
||||
- name: Make sure docker_swarm_node_attributes is not available
|
||||
assert:
|
||||
that:
|
||||
- docker_swarm_node_attributes is undefined
|
||||
- name: Make sure ansible_host_uri is available
|
||||
assert:
|
||||
that:
|
||||
- ansible_host_uri is defined
|
||||
- name: Print ansible_host_uri
|
||||
debug:
|
||||
var: ansible_host_uri
|
Loading…
Reference in New Issue