Преглед изворни кода

Merge branch 'master' of git.thengo.net:ka/ansible-role-common

master
Markus Katharina Brechtel пре 2 година
родитељ
комит
a4857c9bfc
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      tasks/hostname.yaml

+ 2
- 2
tasks/hostname.yaml Прегледај датотеку

@@ -10,10 +10,10 @@
lineinfile:
dest: "{{ root_target_directory | default('') }}/etc/hosts"
regexp: '^127\.0\.0\.1'
line: "127.0.0.1 localhost {{inventory_hostname}} {{inventory_hostname_short}}"
line: "127.0.0.1 localhost {{inventory_hostname}}{% if inventory_hostname != inventory_hostname_short %} {{inventory_hostname_short}}{% endif %}"

- name: localhost ipv6 entry
lineinfile:
dest: "{{ root_target_directory | default('') }}/etc/hosts"
regexp: '^::1'
line: "::1 localhost ip6-localhost ip6-loopback {{inventory_hostname}} {{inventory_hostname_short}}"
line: "::1 localhost ip6-localhost ip6-loopback {{inventory_hostname}}{% if inventory_hostname != inventory_hostname_short %} {{inventory_hostname_short}}{% endif %}"