Michael Scherer
21688383c3
Convert command output to native string ( #4559 )
...
Without it, the module always return changed on python3,
which is harmless but add noise and can have some side effects.
8 years ago
Indrajit Raychaudhuri
23ebb98570
Improve hostname module to support systemd in more generic way ( #4382 )
...
Now that there is general purpose `Fact` helper to detect if systemd
is active, we would be able to rely on that to apply SystemdStrategy.
Detecting presence of systemd at runtime would be more reliable than
distribution version based heuristics. (e.g., Debian, Ubuntu allows
user to change the default init system, Gentoo allows switching as
well, and so on).
8 years ago
Michael Scherer
2e0307e083
Port hostname to a py24 and py3 compatible syntax ( #3676 )
9 years ago
Joao Carreira
a7c3c82162
added support for sles 10 & 11
9 years ago
Toshio Kuratomi
09e2457eb0
Fix documentation build in hostname
9 years ago
Hiroaki Nakamura
9f2bd22a3d
Doc: Add NOTE about hostname modules does not modify /etc/hosts
9 years ago
Michael Scherer
8ccfdb874e
Remove a unneeded use of use_unsafe_shell
...
Since use_unsafe_shell is suspicious from a security point
of view (or it wouldn't be unsafe), the less we have, the less
code we have to toroughly inspect for a security audit.
9 years ago
Sina Sadeghi
ae582adce6
Update hostname.py
...
Added support for FreeBSD. (http://www.freebsd.org )
9 years ago
Jordi De Groof
6584b59d91
Update facts when hostname is changed
...
ansible_hostname contains the unqualified hostname
9 years ago
chriskarel
32a21a9b61
Update hostname.py
...
Added support for Oracle Linux. (http://www.oracle.com/linux )
9 years ago
Tim Rupp
48f522455d
Add hostname support for Kali linux 2.0
...
This patch allows the hostname module to detect and set the hostname for a
Kali Linux 2.0 installation. Without this patch, the hostname module raises
the following error
hostname module cannot be used on platform Linux (Kali)
Kali is based off of Debian.
9 years ago
saito-hideki
e91ad2ab6c
Add Solaris support in hostname module
...
feature_pull_request: #1804
9 years ago
saito-hideki
b991a2708b
Add Solaris support in hostname module
9 years ago
Hagai Kariti
9d833d1d4c
Hostname module should update ansible_hostname
10 years ago
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
10 years ago
Vladislav Lewin
771b369005
add SLE12 support to hostname.py
10 years ago
Jonathan Mainguy
f7064c672c
added nice error for systemd hosts where name > 64 chars
10 years ago
Jonathan Mainguy
ffbdd349b8
added openbsd to hostname module
10 years ago
Evgenii Terechkov
d1595b99bc
Add ALT Linux support to hostname module
10 years ago
Philippe ALEXANDRE
ac1a64e62f
Add Linuxmint support in hostname module
10 years ago
Ben Konrath
347234b937
Add support for SL7 to hostname module.
10 years ago
Johnny Robeson
50011f13d6
[hostname] rename FedoraStratgy to SystemdStrategy
10 years ago
Toshio Kuratomi
67aeab9576
Merge pull request #512 from mscherer/fix_438
...
Revert commit cbc417c
, as the code is broken, see #438
10 years ago
Jonathan Mainguy
541070be4c
Fixed hostname for rhel5 python 2.4.3
10 years ago
Michael Scherer
39cd64ec17
Revert commit cbc417c
, as the code is broken, see #438
...
LooseVersion expect a string, so filtering to return a int
is incorrect. Thanks to Jeremy Brown for the analysis.
10 years ago
Brian Coca
ba139b145b
fixed hostname for gentoo
10 years ago
Robert Estelle
4dd099fe7a
Remove incorrect executable permissions.
10 years ago
Brian Coca
83669d7eda
switched to iterator as per comments
10 years ago
Brian Coca
e4b6968901
made hostname work with python 2.4
10 years ago
Michael DeHaan
c8e1a2077e
file extensions!
10 years ago