From c87fa934446b5ebb3430d8d60842a852f1000d14 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 2 Feb 2022 04:45:50 -0500 Subject: [PATCH] Remove workaround for OpenSUSE when setting AIO hostname We no longer support OpenSUSE deployments so this code is redundant. Change-Id: If5363321cea9031ff5cf9bd474d8d9711fc54e66 --- .../bootstrap-host/tasks/prepare_hostname.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml index 415b54dafd..262fb9129a 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml @@ -30,18 +30,5 @@ backup: yes - name: Ensure hostname is set - block: - - name: Set hostname using the Ansible module - hostname: - name: aio1 - # NOTE(hwoarang) The hostname module does not work on Leap 15 because of - # https://bugzilla.novell.com/show_bug.cgi?id=997614 - # As such we need to fallback to using the command directly. - # NOTE(evrardjp): Remove this when Ansible 2.8 is out, as Ansible now - # vendors in the distro python package, which _should_ technically help. - # (To be tested) - rescue: - - name: Set hostname using hostnamectl - command: hostnamectl set-hostname aio1 - tags: - - skip_ansible_lint + hostname: + name: aio1