Remove deprecated ansible_ssh_host variable
This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host' variable has been deprecated as noted here: [0]. [0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups Change-Id: Ie34bb924b55d4e1c7b4568c2eadd2a7a1a60a821 Related-Bug: #1636606 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
c8f1af0bcf
commit
baf0553a36
@ -49,7 +49,7 @@
|
||||
state: restarted
|
||||
- name: Wait for influxdb to be ready
|
||||
wait_for:
|
||||
host: "{{ hostvars[groups['cluster-metrics'][0]]['ansible_ssh_host'] }}"
|
||||
host: "{{ hostvars[groups['cluster-metrics'][0]]['ansible_host'] }}"
|
||||
port: "{{ influxdb_port }}"
|
||||
delay: 1
|
||||
- name: Create metrics DB
|
||||
|
@ -27,7 +27,7 @@ data_dir = "/var/lib/kapacitor"
|
||||
enabled = true
|
||||
name = "[% influxdb_db_name %]"
|
||||
default = true
|
||||
urls = ["http://[% hostvars[groups['cluster-metrics'][0]]['ansible_ssh_host'] %]:[% influxdb_port %]"]
|
||||
urls = ["http://[% hostvars[groups['cluster-metrics'][0]]['ansible_host'] %]:[% influxdb_port %]"]
|
||||
username = "[% influxdb_db_root_name %]"
|
||||
password = "[% influxdb_db_root_password %]"
|
||||
ssl-ca = ""
|
||||
|
@ -23,7 +23,7 @@
|
||||
omit_hostname = false
|
||||
|
||||
[[outputs.influxdb]]
|
||||
urls = ["http://{{ hostvars[groups['cluster-metrics'][0]]['ansible_ssh_host'] }}:{{ influxdb_port }}"]
|
||||
urls = ["http://{{ hostvars[groups['cluster-metrics'][0]]['ansible_host'] }}:{{ influxdb_port }}"]
|
||||
database = "{{ influxdb_db_name }}"
|
||||
precision = "s"
|
||||
write_consistency = "any"
|
||||
|
Loading…
Reference in New Issue
Block a user