diff options
author | Ondrej Kozina <okozina@redhat.com> | 2025-03-19 10:56:17 +0100 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2025-03-19 12:28:17 +0100 |
commit | 543ee459a98ad400bdfbcec93bae2109d09dd410 (patch) | |
tree | 9d494d56d941c7940e5aff8b88ad15aeb451c6ca | |
parent | b54c4507f71deca5ffd1fd165ec24b65c6cb0074 (diff) | |
download | libvirt-ci-543ee459a98ad400bdfbcec93bae2109d09dd410.zip libvirt-ci-543ee459a98ad400bdfbcec93bae2109d09dd410.tar.gz libvirt-ci-543ee459a98ad400bdfbcec93bae2109d09dd410.tar.bz2 |
Fix cloud-init update task.
Cloud-init project removed cloud-init.service in release 24.3.
Also the new services do not need be enabled explicitly and
are used mostly for ordering purposes of other services.
This fixes current Fedora Rawhide (with cloud-init-25.1) CI
runners.
Signed-off-by: Ondrej Kozina <okozina@redhat.com>
-rw-r--r-- | lcitool/ansible/playbooks/update/tasks/cloud-init.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lcitool/ansible/playbooks/update/tasks/cloud-init.yml b/lcitool/ansible/playbooks/update/tasks/cloud-init.yml index 4fcbfe0..ab467f5 100644 --- a/lcitool/ansible/playbooks/update/tasks/cloud-init.yml +++ b/lcitool/ansible/playbooks/update/tasks/cloud-init.yml @@ -1,4 +1,7 @@ --- +- name: Get package facts + ansible.builtin.package_facts: + - name: Enable cloud-init services service: name: '{{ item }}' @@ -10,6 +13,7 @@ - cloud-final when: - os.name != 'FreeBSD' + - ansible_facts.packages['cloud-init'][0].version.split('-') | first is version('24.3', '<') - name: Enable cloud-init services service: |