From 8074d20b8f7beca893d7db322ac3b52483cc22c4 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 16 Feb 2024 06:55:05 -0800 Subject: [PATCH] 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 --- roles/ensure-docker/handlers/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ensure-docker/handlers/main.yaml b/roles/ensure-docker/handlers/main.yaml index f51cd6c6d..5feaffdbd 100644 --- a/roles/ensure-docker/handlers/main.yaml +++ b/roles/ensure-docker/handlers/main.yaml @@ -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