diff --git a/README.md b/README.md index c35dc671a9f1a3777dc3355a819ce86a328f309e..28cf3bb3c8e7958786a89ae7f08add381f48b84c 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,6 @@ Variables used on other hosts for monitoring : * urls for every service listed below Hosts from the following groups added to monitoring : -* physical_server * docker * docker_direct_internet_access * docker_restrict_internet_access diff --git a/templates/vps.cfg.j2 b/templates/vps.cfg.j2 index e84c2cc7747e6023e1656bc4195865eed8a4e3bc..eb9680be9cba636f1bcf85f3561050ead23623f1 100644 --- a/templates/vps.cfg.j2 +++ b/templates/vps.cfg.j2 @@ -7,7 +7,7 @@ ############################################################################### # Define a host for the local machine -{% for host in groups['all'] | difference(groups['physical_server']) | sort %} +{% for host in groups['all'] | sort %} {% if host != inventory_hostname %} define host{ use linux-server @@ -17,19 +17,6 @@ define host{ } {% endif %} -{% endfor %} -{% for host in groups['physical_server'] | sort %} -define host{ - use generic-host - host_name {{ host }} - alias {{ host }} -{% if hostvars[host].odoo_prod is defined %} - address {{ hostvars[host].odoo_prod.url }} -{% else %} - address {{ hostvars[host].ansible_host }} -{% endif %} - } - {% endfor %} define host{ use linux-server