diff options
author | Kamil Wiatrowski <kamilx.wiatrowski@intel.com> | 2018-10-03 14:59:28 +0200 |
---|---|---|
committer | Kamil Wiatrowski <kamilx.wiatrowski@intel.com> | 2018-10-04 15:30:03 +0200 |
commit | ba987198cd381a10b5075eac599fee9d2f6219d9 (patch) | |
tree | d0e7739ef298e727ffbaaf5f5c2d2354148be77a /docker/ansible/roles/config_files/vars/main.yml | |
parent | 328129a1fd4ae54fe012379439464a56d15d4681 (diff) |
Add role to auto install docker on hosts - missing patch
Small updates to ansible roles.
Several minor updates in documentation.
Change-Id: Id031cebc23301b6218f8ced0d261f844f270e37f
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Diffstat (limited to 'docker/ansible/roles/config_files/vars/main.yml')
-rw-r--r-- | docker/ansible/roles/config_files/vars/main.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/ansible/roles/config_files/vars/main.yml b/docker/ansible/roles/config_files/vars/main.yml index bfa0fd68..ab4a7867 100644 --- a/docker/ansible/roles/config_files/vars/main.yml +++ b/docker/ansible/roles/config_files/vars/main.yml @@ -23,7 +23,10 @@ interval_value: 10 #network plugin vars network_port: 25826 -network_ip_addr: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}" +#get influxdb name as defined in inventory +influxdb_hostname: "{{ (groups['influxdb_hosts']|default({}))[0] | default('localhost') }}" +#get hostname as used by ansible +network_ip_addr: "{{ hostvars[influxdb_hostname].ansible_hostname }}" #ovs event and stats plugin vars ovs_event_interval: 1 |