Merge "Remove workaround for OpenSUSE when setting AIO hostname"

This commit is contained in:
Zuul 2022-02-10 15:48:46 +00:00 committed by Gerrit Code Review
commit da8c4620dd

View File

@ -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