homeserver/roles/mgrote.motd/handlers/main.yml

16 lines
321 B
YAML
Raw Normal View History

---
2020-08-18 11:57:53 +02:00
- name: Erzwinge_Aktualisierung
become: yes
command: update-motd
when: ansible_facts['os_family'] == "Ubuntu"
- name: restart_sshd
become: yes
systemd:
name: sshd
state: restarted
- name: systemctl_reset_failed
become: yes
ansible.builtin.shell: systemctl reset-failed