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