mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
fix(hostname): avoid duplicating the hosts in /etc/hosts
Because the `blockinfile` module from ansible expects the `marker` string to include `{mark}` case-sensetive, the entire block was duplicated with each run.
This commit is contained in:
parent
67affeb0e0
commit
750a95b8f1
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
{% for host in hostname_hosts %}
|
||||
{{ host.ip }} {{ host.fqdn }} {{ host.alias | default([]) | join(" ") }}
|
||||
{% endfor %}
|
||||
marker: "# {MARK} ANSIBLE MANAGED BLOCK"
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
|
||||
- name: Set hostname via hostnamectl to avoid a reboot
|
||||
command:
|
||||
|
|
Loading…
Reference in a new issue