Convert role testing to use Ansible 2.1.1
Change-Id: Ia923ae1a3be0e4aea821c70f7bb0744c900aaa77
This commit is contained in:
parent
805f73a8de
commit
098cab2ae8
|
@ -29,6 +29,7 @@ doc/build/
|
|||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
logs/
|
||||
|
||||
# OS generated files #
|
||||
######################
|
||||
|
@ -63,4 +64,6 @@ releasenotes/build
|
|||
.vagrant
|
||||
|
||||
# Test playbooks brought in by tox
|
||||
tests/plugins
|
||||
tests/playbooks
|
||||
tests/test.retry
|
||||
|
|
|
@ -46,7 +46,7 @@ host_update "{{ ansible_hostname|default(host_rfc_1034_1035_name) }}" \
|
|||
host_update "{{ hostvars[item]['ansible_hostname']|default(target_rfc_1034_1035_name) }}" \
|
||||
"{{ target_rfc_1034_1035_name }}" \
|
||||
"{{ item }}" \
|
||||
"{{ hostvars[item]['ansible_ssh_host'] }}" \
|
||||
"{{ hostvars[item]['ansible_host'] | default("127.0.0.1") }}" \
|
||||
"{{ openstack_domain }}"
|
||||
|
||||
{% endfor %}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[all]
|
||||
localhost ansible_ssh_host=127.0.0.1 ansible_connection=local ansible_become=True
|
||||
test1 ansible_ssh_host=127.111.111.101 ansible_become=True
|
||||
test2 ansible_ssh_host=127.111.111.102 ansible_become=True
|
||||
localhost ansible_host=127.0.0.1 ansible_become=True
|
||||
test1 ansible_host=127.111.111.101 ansible_become=True
|
||||
test2 ansible_host=127.111.111.102 ansible_become=True
|
||||
|
||||
[all_containers]
|
||||
test1
|
||||
|
|
Loading…
Reference in New Issue