This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/tasks/cronjobs.yml
2022-02-27 16:05:34 -05:00

13 lines
416 B
YAML

- name: Cronjob to remove externally managed eth0 connection
cron:
name: "Ensure eth0 is not externally managed"
minute: "*/10"
job: "/usr/bin/nmcli connection down eth0 > /dev/null 2>&1; /usr/bin/nmcli connection down wired > /dev/null 2>&1; /usr/bin/nmcli connection up wired > /dev/null"
state: present
- name: Enable cron daemon
service:
name: cronie
state: started
enabled: yes