diff options
author | Kamil Wiatrowski <kamilx.wiatrowski@intel.com> | 2018-10-11 13:10:06 +0200 |
---|---|---|
committer | Aaron Smith <aasmith@redhat.com> | 2018-11-09 19:27:59 +0000 |
commit | f0d6ce0116e70c0c8b5d36beaf11ecdc28e007b8 (patch) | |
tree | 5dac516f7d79cd88c38c15e49062a3cfc9534364 /docker/ansible/roles/run_grafana/tasks/main.yml | |
parent | b37155d4408189aa8cb0203cbe0c95fabc3c30da (diff) |
ansible: Set IP address of influxdb for grafana
Set ip address to influxdb for grafana based on
provided hostname. IP address in numerical format
is required by grafana container. Mapping of
hostname in /etc/hosts is no longer required.
Change-Id: I684de737c6f8e48b5b9f256541901852d7ecc05a
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
(cherry picked from commit 3e269c4c295e3dd81dfeaebe9de4c4a702e7f1d5)
Diffstat (limited to 'docker/ansible/roles/run_grafana/tasks/main.yml')
-rw-r--r-- | docker/ansible/roles/run_grafana/tasks/main.yml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/docker/ansible/roles/run_grafana/tasks/main.yml b/docker/ansible/roles/run_grafana/tasks/main.yml index ea4ca8b9..0ec307fa 100644 --- a/docker/ansible/roles/run_grafana/tasks/main.yml +++ b/docker/ansible/roles/run_grafana/tasks/main.yml @@ -31,9 +31,6 @@ - rm_grafana_image when: rm_images|default(false)|bool == true -- set_fact: - influxdb_host_ip_mapping: "{ '{{ influxdb_hostname }}': '{{ influxdb_host_ip }}' }" - - name: Cleanup barometer-grafana cache directory under host file: path: /var/lib/grafana @@ -49,9 +46,7 @@ ports: - 3000:3000 env: - influxdb_host: "{{ influxdb_hostname }}" - etc_hosts: - "{{ influxdb_host_ip_mapping }}" + influxdb_host: "{{ influxdb_host_ip }}" detach: yes restart: yes network_mode: host |