summaryrefslogtreecommitdiff
path: root/salt/openbook
diff options
context:
space:
mode:
Diffstat (limited to 'salt/openbook')
-rw-r--r--salt/openbook/ansible/files/openbook.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/salt/openbook/ansible/files/openbook.yaml b/salt/openbook/ansible/files/openbook.yaml
index 44a0081..a2d9688 100644
--- a/salt/openbook/ansible/files/openbook.yaml
+++ b/salt/openbook/ansible/files/openbook.yaml
@@ -36,7 +36,7 @@
regexp: "{% raw %}{{ item.regexp }}{% endraw %}"
line: "{% raw %}{{ item.line }}{% endraw %}"
with_items:
- - { regexp: '^127\.0\.0\.1.*$', line: "127.0.0.1 localhost {% raw %}{{ ansible_nodename }}{% endraw %}" }
+ - { regexp: '^127\.0\.0\.1.*$', line: "127.0.0.1 localhost {% raw %}{{ inventory_hostname }} {{ ansible_nodename }}{% endraw %}" }
- name: "Create Openbook directories"
file: