Commit Graph

21 Commits (3d44f7cd515682e579efa065b0d42ee9020e05a0)

Author SHA1 Message Date
Cristian Ciupitu 138b45e32f 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
11 years ago
Michael DeHaan 4e8b97ddeb More shell updates 11 years ago
rishid 34f9349b5e Add support for Scientific Linux for hostname module
hostname module was lacking support for Scientific Linux, this commit adds it.
11 years ago
James Tanner dee960716b Fixes #5353 create etc/hostname file in debian if it does not exist 11 years ago
David Hummel cc3678730c Fix issue #5214: hostname persistence on RedHat/CentOS 11 years ago
jctanner 2670529671 Merge pull request #5090 from dragon3/hostname_support_amazon_linux
hostname module: add support for Amazon Linux
11 years ago
jctanner ef92b2cb12 Merge pull request #5063 from samh/devel
Fixed hostname module for RHEL6 Workstation
11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
dragon3 d39e6fda92 hostname module: add support for Amazon Linux 11 years ago
Sam Hartsfield ae7735b45d Fixed hostname module for RHEL6 Workstation 11 years ago
James Tanner 1d24bcc916 Fix pep8 error in hostname module 11 years ago
Hiroaki Nakamura 63a552b2d3 Apply the same change as https://github.com/hnakamur/ansible-playbooks/pull/2 11 years ago
James Tanner fa62ee46bf Set the correct version added for the hostname module 11 years ago
Hiroaki Nakamura abed2c47fa Fix for RHEL6. 11 years ago
Hiroaki Nakamura 54243dc8f5 Add support for Fedora, OpenSUSE and ArchLinux.
Tested under Fedora 19 and OpenSUSE 12.3. Not tested on ArchLinux.
11 years ago
Hiroaki Nakamura 8c5eb96de4 Do not use shortcut conditional operator which is not supported in Python 2.4. 11 years ago
Hiroaki Nakamura a0da0afe00 Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split! 11 years ago
Hiroaki Nakamura 4f91238e34 Rewrite with "try ... finally" instead of "with" statement to support Python 2.4. 11 years ago
Hiroaki Nakamura 3b1d7d88b5 Remove extra sysloggings. 11 years ago
Hiroaki Nakamura f4ba0e78a4 Raise an error on unsupported platform/distributions. 11 years ago
Hiroaki Nakamura ce2b37e2ff Add a hostname module, which sets system's hostname. 11 years ago