James Cammarata
03f0d6bec8
Merge pull request #8308 from robinro/extend-hostname-distrolist
...
Extended distributions list for hostname module
11 years ago
Robin Roth
7920f4eaf5
Fix extra newline at end of hostname for Fedora
...
This fixes a bug introduced by 138b45e3
.
The hostname has an additional newline at the end which leads to the
state always being 'changed: true' even if the hostname is unchanged.
11 years ago
Robin Roth
a26bc9c926
Extended distributions list for hostname module
...
Implementations already present
11 years ago
Ruggero Marchei
ae95ebd075
fix LooseVersion exception with empty distribution_version
11 years ago
Ruggero Marchei
8d01986617
fix issue #8102
11 years ago
Ruggero Marchei
f522425415
move get_distribution_version() to basic.py
11 years ago
Ruggero Marchei
bd69e9f265
use different strategy for RHEL >= 7. Fixes 7763
11 years ago
Olivier Louvignes
158d6276eb
Add support for Linaro distribution in hostname module
11 years ago
Cristian Ciupitu
a416dba3d1
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
29138b1872
More shell updates
11 years ago
rishid
4ef5b60f3d
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
154a99529c
Fixes #5353 create etc/hostname file in debian if it does not exist
11 years ago
David Hummel
e329b23365
Fix issue #5214 : hostname persistence on RedHat/CentOS
11 years ago
jctanner
5fb01db898
Merge pull request #5090 from dragon3/hostname_support_amazon_linux
...
hostname module: add support for Amazon Linux
11 years ago
jctanner
cd5c817a36
Merge pull request #5063 from samh/devel
...
Fixed hostname module for RHEL6 Workstation
11 years ago
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
dragon3
b5eb3c41e3
hostname module: add support for Amazon Linux
11 years ago
Sam Hartsfield
a8a6771b0e
Fixed hostname module for RHEL6 Workstation
11 years ago
James Tanner
6ca17b90d0
Fix pep8 error in hostname module
11 years ago
Hiroaki Nakamura
cc17a0ac7d
Apply the same change as https://github.com/hnakamur/ansible-playbooks/pull/2
11 years ago
James Tanner
44014d6800
Set the correct version added for the hostname module
11 years ago
Hiroaki Nakamura
7aa728a32f
Fix for RHEL6.
11 years ago
Hiroaki Nakamura
744b758633
Add support for Fedora, OpenSUSE and ArchLinux.
...
Tested under Fedora 19 and OpenSUSE 12.3. Not tested on ArchLinux.
11 years ago
Hiroaki Nakamura
7bd59c4b23
Do not use shortcut conditional operator which is not supported in Python 2.4.
11 years ago
Hiroaki Nakamura
2bef08705f
Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split!
11 years ago
Hiroaki Nakamura
bf21ba1521
Rewrite with "try ... finally" instead of "with" statement to support Python 2.4.
11 years ago
Hiroaki Nakamura
860cf75fdc
Remove extra sysloggings.
11 years ago
Hiroaki Nakamura
14fde81ad5
Raise an error on unsupported platform/distributions.
11 years ago
Hiroaki Nakamura
557c25a794
Add a hostname module, which sets system's hostname.
11 years ago