modify line with quotes

This commit is contained in:
Ruben Blanco 2024-02-12 13:24:32 +01:00
parent 1958812a53
commit 9cf070bbff
1 changed files with 1 additions and 1 deletions

View File

@ -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