Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Tools
Ansible
Roles
Hostname
Compare revisions
eecd48df42993052cbc9e6b6b82d2c097aab9d2a to b0a9a7e9bd5ec18f16d2c3a649c68430ff4a4ec0
Commits on Source (2)
fix
· 1cd6ba01
Дмитрий Сафронов
authored
Jun 01, 2021
1cd6ba01
Merge branch 'fix' into 'master'
· b0a9a7e9
Дмитрий Сафронов
authored
Jun 01, 2021
fix See merge request ansible/roles/hostname!5
b0a9a7e9
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
b0a9a7e9
...
...
@@ -11,6 +11,6 @@
lineinfile
:
dest=/etc/hosts
regexp="^{{ ip | default(ansible_default_ipv4.address) }}.+$"
line="{{ ip | default(ansible_default_ipv4.address) }} {{
ansible_fqdn }} {{ ansible
_hostname }} {{
inventory
_hostname }}"
line="{{ ip | default(ansible_default_ipv4.address) }} {{
inventory
_hostname }} {{
ansible
_hostname }}"
tags
:
hostname