From d833b57877c163fb7ab6f5cdc5f72c3d53d00f50 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sun, 30 Oct 2022 15:09:00 +0000 Subject: [PATCH] tftp: Also fix handlers for ansible-lint --- roles/tftp/handlers/main.yml | 4 ++-- roles/tftp/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/tftp/handlers/main.yml b/roles/tftp/handlers/main.yml index 3ad1e37..890857c 100644 --- a/roles/tftp/handlers/main.yml +++ b/roles/tftp/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: restart tftpd - systemd: +- name: Restart tftpd + ansible.builtin.systemd: name: tftp.socket state: restarted diff --git a/roles/tftp/tasks/main.yml b/roles/tftp/tasks/main.yml index 18dc4f8..b943c63 100644 --- a/roles/tftp/tasks/main.yml +++ b/roles/tftp/tasks/main.yml @@ -66,7 +66,7 @@ mode: 0644 owner: root group: "{{ ansible_wheel }}" - notify: restart tftpd + notify: Restart tftpd when: ansible_service_mgr == "systemd" - name: Enable service