With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.
With that we also update metdata to reflect current state.
Change-Id: I3aa1a19eb1aa735bafb29e5babe433b77a8d1f47
Containers do not have an initramfs so this is not useful, and fails
for Centos-7 with:
Can't write to /boot: Directory /boot does not exist or is not accessible.
Change-Id: Ibc6ff871ad6984d4e0f29693f4827f57169aef92
The async function was added to the restart handler but not the start
task. This change adds the missing async which will ensure we're not
hung on transient networkd starts.
Change-Id: I81a9e578875a43f7581abec0a3bf0c4067ab4d41
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
When restarting networkd we don't need to wait for the restart to
complete. This change adds an async to speed things up.
Change-Id: I5e038f8a6fc00b476cfc505d8cc30929ba667127
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The systemd-networkd role was reloading the systemd daemon on every run
this change removes that as this role will not need to modify anything
that requires a daemon reload.
Network facts will be gathered after this role executes which will
ensure any state changes are picked up as soon as they're available.
Change-Id: Ib3efa6a1662da48d0f58e00ed77f725e1a950edb
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
If the new variable systemd_resolved is defined, resolved will be setup
within the environment. This will configure the global configuration
file and restart the service.
A test has been added to ensure this code path is exercised on every
commit. It should be noted that suse does not have a resolved package so
this functionality is disabled when a suse system is encountered. This
should be revised as soon as suse has resolved available.
Change-Id: I85278719bc5b7158244fd44c65d4366935555780
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>