Convert role testing to use Ansible 2.1.1

Change-Id: Ia923ae1a3be0e4aea821c70f7bb0744c900aaa77
This commit is contained in:
Travis Truman 2016-09-13 11:20:43 -04:00
parent 805f73a8de
commit 098cab2ae8
4 changed files with 8 additions and 5 deletions

3
.gitignore vendored
View File

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

View File

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

View File

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

View File

@ -94,7 +94,7 @@ commands =
[testenv:ansible]
deps =
{[testenv]deps}
ansible==1.9.4
ansible==2.1.1
ansible-lint>=2.7.0,<3.0.0
setenv =
{[testenv]setenv}