mirror of https://github.com/ansible/ansible.git
hostname module: don't filter hostnamectl with awk
There's no need to filter hostnamectl's output with awk because its man
page says:
hostnamectl [OPTIONS...] {COMMAND}
--static, --transient, --pretty
If status is used (or no explicit command is given) and one
of those fields is given, hostnamectl will print out just
this selected hostname.
E.g. hostnamectl --static status => ansible.example.org
reviewable/pr18780/r1
parent
7f681c33a2
commit
a416dba3d1
Loading…
Reference in New Issue