Fix ensure-docker for Ansible 6

The systemd_service module is known as "systemd" in Ansible 6.  Use
the backwards compat format until Ansible 6 is removed from Zuul.

Change-Id: Ifff1cdfdf4d03426f289355673ee1472f0d37dd6
This commit is contained in:
James E. Blair 2024-02-16 06:55:05 -08:00
parent 509880073e
commit 8074d20b8f

View File

@ -1,7 +1,9 @@
---
- name: Reload systemd
become: true
systemd_service:
# Ansible 6 requires "systemd" and not "systemd_service"
# TODO: change this to systemd_service >= 2 weeks after Zuul 10 is released
systemd:
daemon_reload: true
- name: Stop docker.socket to avoid any conflict