Per http://docs.ansible.com/ansible/intro_inventory.html,
"Ansible 2.0 has deprecated the “ssh” from ansible_ssh_user, ansible_ssh_host, and ansible_ssh_port to become ansible_user, ansible_host, and ansible_port. If you are using a version of Ansible prior to 2.0, you should continue using the older style variables (ansible_ssh_*). These shorter variables are ignored, without warning, in older versions of Ansible."
The dyanmic_inventory.py script will generate both ansible_ssh_host and ansible_host, however `ansible_ssh_host` should be removed due to the deprecation.
Before that happens, though, the following uses will have to be updated:
/etc/ansible/roles/galera_server/tests/test-galera-server-functional.yml:60: when: ansible_ssh_host == '10.100.100.101'
/etc/ansible/roles/galera_server/tests/test-galera-server-functional.yml:74: when: ansible_ssh_host == '10.100.100.102'
/etc/ansible/roles/resolvconf/tests/inventory:2:localhost ansible_connection=local ansible_become=True ansible_ssh_host=127.0.0.1
/etc/ansible/roles/resolvconf/templates/resolvconf-base.j2:14:nameserver {{ hostvars[item]['ansible_ssh_host'] }}
/etc/ansible/roles/unbound/tests/inventory:2:localhost ansible_connection=local ansible_become=True ansible_ssh_host=127.0.0.1
/etc/ansible/roles/unbound/templates/openstack.conf.j2:5: {%- if hostvars[container]['ansible_ssh_host'] is defined %}
/etc/ansible/roles/unbound/templates/openstack.conf.j2:6: local-data: "{{ container }}.{{ unbound_regional_zone }} A {{ hostvars[container]['ansible_ssh_host'] }}"
/etc/ansible/roles/unbound/templates/openstack.conf.j2:9: local-data: "{{ target_rfc_1034_1035_name }}.{{ unbound_regional_zone }} A {{ hostvars[container]['ansible_ssh_host'] }}"
/etc/ansible/roles/unbound/templates/openstack.conf.j2:18: local-data: "{{ container }}-lm.{{ unbound_regional_zone }} A {{ hostvars[container]['ansible_ssh_host'] }}"
/etc/ansible/roles/unbound/templates/openstack.conf.j2:24: {%- if hostvars[container]['ansible_ssh_host'] is defined %}
/etc/ansible/roles/unbound/templates/openstack.conf.j2:25: local-data: "{{ group_name }}.{{ unbound_regional_zone }} A {{ hostvars[container]['ansible_ssh_host'] }}"
/etc/ansible/roles/haproxy_server/templates/service.j2:87:{% set _ = entry.append(hostvars[host_name]['ansible_ssh_host'] + ":" + haproxy_backend_port | string) %}
/etc/ansible/roles/haproxy_server/templates/service.j2:104:{% set _ = entry.append(hostvars[host_name]['ansible_ssh_host'] + ":" + haproxy_backend_port | string) %}
Binary file /etc/ansible/roles/plugins/strategy/linear.pyc matches
/etc/ansible/roles/plugins/strategy/linear.py:140: ansible_host = ph.vars.get('ansible_ssh_host')
/etc/ansible/roles/os_ceilometer/tests/test-install-mongodb.yml:60: command: "mongo --host {{ ansible_ssh_host }} --eval ' '"
/etc/ansible/roles/os_ceilometer/templates/ceilometer.conf.j2:95:messaging_urls = rabbit://{{ swift_rabbitmq_telemetry_userid }}:{{ swift_rabbitmq_telemetry_password }}@{{ hostvars[host]['ansible_ssh_host'] }}:{{ swift_rabbitmq_telemetry_port }}/{{ swift_rabbitmq_telemetry_vhost }}
/etc/ansible/roles/bird/tests/inventory:2:localhost ansible_connection=local ansible_become=True ansible_ssh_host=127.0.0.1
/etc/ansible/roles/os_aodh/tests/group_vars/all_containers.yml:16:ansible_ssh_host: "{{ ansible_host }}"
/etc/ansible/roles/os_aodh/tests/os_aodh-overrides.yml:17:aodh_db_address: "{{ hostvars[groups['galera_all'][0]]['ansible_ssh_host'] }}"
/etc/ansible/roles/os_aodh/tests/os_aodh-overrides.yml:27:aodh_service_publicuri: "{{ aodh_service_proto }}://{{ hostvars[groups['aodh_all'][0]]['ansible_ssh_host'] }}:{{ aodh_service_port }}"
/etc/ansible/roles/os_aodh/tests/os_aodh-overrides.yml:28:aodh_service_internaluri: "{{ aodh_service_proto }}://{{ hostvars[groups['aodh_all'][0]]['ansible_ssh_host'] }}:{{ aodh_service_port }}"
/etc/ansible/roles/os_aodh/tests/os_aodh-overrides.yml:29:aodh_service_adminuri: "{{ aodh_service_proto }}://{{ hostvars[groups['aodh_all'][0]]['ansible_ssh_host'] }}:{{ aodh_service_port }}"
/etc/ansible/roles/os_aodh/tests/inventory:3:infra1 ansible_ssh_host=10.100.100.2 ansible_host=10.100.100.2 ansible_become=True ansible_user=root
/etc/ansible/roles/os_aodh/tests/inventory:4:openstack1 ansible_ssh_host=10.100.100.3 ansible_host=10.100.100.3 ansible_become=True ansible_user=root
/etc/ansible/roles/os_magnum/tests/host_vars/infra1.yml:17:ansible_ssh_host: 10.1.1.101
/etc/ansible/roles/os_magnum/tests/host_vars/localhost.yml:19:ansible_ssh_host: 10.1.1.1
/etc/ansible/roles/os_magnum/tests/host_vars/openstack1.yml:17:ansible_ssh_host: 10.1.1.102
/etc/ansible/roles/os_magnum/extras/os-magnum-install.yml:37: host: "{{ ansible_ssh_host }}"
/etc/ansible/roles/os_magnum/templates/magnum.conf.j2:4:host = {{ ansible_ssh_host | default(ansible_host) }}
/etc/ansible/roles/os_magnum/templates/magnum.conf.j2:8:host = {{ ansible_ssh_host | default(ansible_host) }}
/etc/ansible/roles/os_rally/tests/group_vars/all_containers.yml:16:ansible_ssh_host: "{{ ansible_host }}"
/etc/ansible/roles/os_rally/tests/inventory:3:infra1 ansible_ssh_host=10.100.100.2 ansible_host=10.100.100.2 ansible_become=True ansible_user=root
/etc/ansible/roles/os_rally/tests/inventory:4:openstack1 ansible_ssh_host=10.100.100.3 ansible_host=10.100.100.3 ansible_become=True ansible_user=root
/etc/ansible/roles/os_rally/tests/test-vars.yml:16:rally_galera_address: "{{ hostvars[groups['galera_all'][0]]['ansible_ssh_host'] }}"
/etc/ansible/roles/os_ironic/defaults/main.yml:136:ironic_tftp_server_address: "{{ ansible_ssh_host }}"
Related fix proposed to branch: master /review. openstack. org/390641
Review: https:/