commit baa3b58a0d2a60bb0e222b3dac5190c8ea171cf3 Author: Bernd Finger Date: Tue Oct 1 18:40:03 2019 +0200 use {{ ansible_hostname }}.{{ ansible_domain }} instead of {{ ansible_fqdn }} diff --git a/tasks/sapnote/2002167/03-setting-the-hostname.yml b/tasks/sapnote/2002167/03-setting-the-hostname.yml index e95fb74..f4e57f8 100644 --- a/tasks/sapnote/2002167/03-setting-the-hostname.yml +++ b/tasks/sapnote/2002167/03-setting-the-hostname.yml @@ -47,7 +47,8 @@ path: /etc/hosts regexp: '^{{ ansible_default_ipv4.address }}' insertbefore: '^127.0.0.1' - line: "{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }} " +# line: "{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }} " + line: "{{ ansible_default_ipv4.address }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }} " state: present when: - sap_preconfigure_modify_etc_hosts diff --git a/tasks/sapnote/2772999/03-configure-hostname.yml b/tasks/sapnote/2772999/03-configure-hostname.yml index 258c9f5..f89ca68 100644 --- a/tasks/sapnote/2772999/03-configure-hostname.yml +++ b/tasks/sapnote/2772999/03-configure-hostname.yml @@ -47,7 +47,8 @@ path: /etc/hosts regexp: '^{{ ansible_default_ipv4.address }}' insertbefore: '^127.0.0.1' - line: "{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }} " +# line: "{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }} " + line: "{{ ansible_default_ipv4.address }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }} " state: present when: - sap_preconfigure_modify_etc_hosts