ansible/test/integration/targets/hostname/tasks
Sam Doran 7352457e7b
hostname - add macOS ()
* Add DarwinStrategy class and integration tests

macOS has three seprate hostname params that need to be set. One of those params, LocalHostName, has more stringent requirements than the other two, which accept special characters and spaces. Create a method to scrub the hostname to ensure it works well with the system requirements.

* Update documentation

* Account for virtualization type returned on Azure Pipelines

* Do not be dependent on order of self.name_types

Use the scrubbed name when the name type is LocalHostName
2020-10-27 17:30:54 -04:00
..
check_mode.yml hostname: hostnamectl check -> SystemdStrategy () 2020-07-09 20:04:23 -05:00
default.yml hostname: hostnamectl check -> SystemdStrategy () 2020-07-09 20:04:23 -05:00
MacOSX.yml hostname - add macOS () 2020-10-27 17:30:54 -04:00
main.yml hostname - add macOS () 2020-10-27 17:30:54 -04:00
RedHat.yml hostname: hostnamectl check -> SystemdStrategy () 2020-07-09 20:04:23 -05:00
test_check_mode.yml hostname - add macOS () 2020-10-27 17:30:54 -04:00
test_normal.yml hostname - add macOS () 2020-10-27 17:30:54 -04:00