From d3b880a97cb020f1c49ed822126c5148403ce93e Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 16 Dec 2018 10:01:47 +0000 Subject: [PATCH] Use a variable for domain names --- ansible/etc/hosts.j2 | 2 +- ansible/secrets.def.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/etc/hosts.j2 b/ansible/etc/hosts.j2 index feb2d14..1edec8b 100644 --- a/ansible/etc/hosts.j2 +++ b/ansible/etc/hosts.j2 @@ -1,6 +1,6 @@ 127.0.0.1 localhost 127.0.1.1 {{ fqdn }} {{ hostname }} -127.0.0.1 wojciechkozlowski.eu cloud.wojciechkozlowski.eu wiki.wojciechkozlowski.eu gitlab.wojciechkozlowski.eu registry.wojciechkozlowski.eu +127.0.0.1 {{ domains }} # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback diff --git a/ansible/secrets.def.yml b/ansible/secrets.def.yml index 7f45f58..9e82ec7 100644 --- a/ansible/secrets.def.yml +++ b/ansible/secrets.def.yml @@ -26,3 +26,6 @@ postfix_mailname: # Fail2Ban fail2ban_sender: + +# For /etc/hosts +domains: