From 9cf070bbff5ebed0ed0b73bfabfe137c9f9a6ff6 Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 12 Feb 2024 13:24:32 +0100 Subject: [PATCH] modify line with quotes --- roles/config-hostname/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/config-hostname/tasks/main.yaml b/roles/config-hostname/tasks/main.yaml index d93d446..3b874ce 100644 --- a/roles/config-hostname/tasks/main.yaml +++ b/roles/config-hostname/tasks/main.yaml @@ -14,7 +14,7 @@ lineinfile: dest: /etc/hosts regexp: '^127\.0\.1\.1\tplantilladebian12\.verdnatura\.es\tplantilladebian12' - line: '127.0.1.1 "{{ name_hostname }}".verdnatura.es "{{ name_hostname }}"' + line: '127.0.1.1 {{ name_hostname }}.verdnatura.es {{ name_hostname }}' # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/hostname_module.html#ansible-collections-ansible-builtin-hostname-module # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/replace_module.html#ansible-collections-ansible-builtin-replace-module