This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
lilik_playbook
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
roles/dns_record: use full fqdn in hosts file
python3
Zolfa
5 years ago
parent
5488494efd
commit
b478954cb6
Signed by:
zolfa
GPG Key ID:
E1A43B038C4D6616
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
roles/dns_record/tasks/main.yaml
+ 2
- 2
roles/dns_record/tasks/main.yaml
View File
@ -1,8 +1,8 @@
-
name:
lineinfile:
dest
:
'/etc/hosts'
line
:
'{{ ansible_default_ipv4.address }} {{
ansible_
hostn
ame
}}'
regexp
:
'^\s*\S* {{
ansible_
hostn
ame
}}'
line
:
'{{ ansible_default_ipv4.address }} {{ host
_fqd
n }}
.
'
regexp
:
'^\s*\S* {{ host
_fqd
n }}
.
'
delegate_to
:
gandalf
register
:
hosts
Write
Preview
Loading…
Cancel
Save