Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zufallsheld
· 10y ago · 0 comments
In fact almost all these tasks could be replaced by ansible modules (except the last the 3
lineinfile
commands).
Comments
[–]
freddiearch
10y ago
Fair enough, I was sort of sleep deprived and just wanted something that actually worked as quickly as possible haha.
[–]
tdfx
10y ago
I'd also prefer those be replaced with a template. IMO, reading a config file with placeholders is much easier than concatenating it in my mind as a series of _lineinfile_ commands.