[icinga-checkins] icinga.org: icinga2-ansible/master: Use ansible_default_ipv4.address instead of ansible_eth0.ipv4.address

git at icinga.org git at icinga.org
Fri Nov 21 17:37:22 CET 2014


Module: icinga2-ansible
Branch: master
Commit: 2d4a04e4909abc50e3169eded81047656d66dbac
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=2d4a04e4909abc50e3169eded81047656d66dbac

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Fri Nov 21 17:36:56 2014 +0100

Use ansible_default_ipv4.address instead of ansible_eth0.ipv4.address

---

 icinga2-ansible-add-hosts/templates/object_logic.j2 |    2 +-
 icinga2-nrpe-agent/README.md                        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/icinga2-ansible-add-hosts/templates/object_logic.j2 b/icinga2-ansible-add-hosts/templates/object_logic.j2
index 9536914..4ced56b 100644
--- a/icinga2-ansible-add-hosts/templates/object_logic.j2
+++ b/icinga2-ansible-add-hosts/templates/object_logic.j2
@@ -2,7 +2,7 @@
   # A host definition
 object Host "{{ hostvars[item]['ansible_fqdn'] }}" {
   import "generic-host"
-  address = "{{ hostvars[item]['ansible_eth0']['ipv4']['address'] }}"
+  address = "{{ hostvars[item]['ansible_default_ipv4']['address'] }}"
   vars.os = "{{ hostvars[item]['ansible_system'] }}"
   vars.os_family = "{{ hostvars[item]['ansible_os_family'] }}"
 
diff --git a/icinga2-nrpe-agent/README.md b/icinga2-nrpe-agent/README.md
index e6666c6..899bd25 100644
--- a/icinga2-nrpe-agent/README.md
+++ b/icinga2-nrpe-agent/README.md
@@ -45,7 +45,7 @@ nrpe_agent_Debian:
 nrpe_configuration:
  - { directive: "log_facility=daemon" }
  - { directive: "server_port=5666" }
- - { directive: "server_address={{ ansible_eth0.ipv4.address }}" }
+ - { directive: "server_address={{ ansible_default_ipv4.address }}" }
  - { directive: "dont_blame_nrpe=0" }
  - { directive: "debug=0" }
  - { directive: "command_timeout=60" }



More information about the icinga-checkins mailing list