Migrate cron to FQCN.
This commit is contained in:
@@ -163,7 +163,7 @@
|
||||
# Run #
|
||||
|
||||
- name: General | Telegraf | Schedule
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: "{{ telegraf_user }}"
|
||||
name: "{{ item.name }}"
|
||||
job: "{{ item.command }}"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## Performance ##
|
||||
|
||||
- name: Miner | Account Management | Cron | Ansible | Daily Performance Reboot
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: ansible
|
||||
name: Daily Performance Reboot
|
||||
job: sudo reboot
|
||||
@@ -16,7 +16,7 @@
|
||||
## Security ##
|
||||
|
||||
- name: Miner | Account Management | Cron | Ansible | Daily Security Update [apt]
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: ansible
|
||||
name: Daily Security Update
|
||||
job: sudo apt update && sudo apt dist-upgrade -y
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## Mining ##
|
||||
|
||||
- name: Miner | Account Management | Cron | MFN | Stop Jobs
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: mfn
|
||||
name: "Stop {{ item.name }}"
|
||||
minute: "*/5"
|
||||
@@ -14,7 +14,7 @@
|
||||
loop: "{{ miners }}"
|
||||
|
||||
- name: Miner | Account Management | Cron | MFN | Start Jobs
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: mfn
|
||||
name: "Start {{ item.name }}"
|
||||
job: "{{ item.command }}"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
backup: true
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Remove Previous Run's Cron Job
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "{{ amdgpu_cron_job }}"
|
||||
state: absent
|
||||
@@ -90,7 +90,7 @@
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare Cron Job To SCM
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "{{ amdgpu_cron_job }}"
|
||||
special_time: reboot
|
||||
@@ -139,7 +139,7 @@
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare Cron Job To SCM
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "{{ amdgpu_cron_job }}"
|
||||
special_time: reboot
|
||||
@@ -178,7 +178,7 @@
|
||||
when: amdgpu_install.failed or "1" == "1"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare Cron Job To SCM
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "{{ amdgpu_cron_job }}"
|
||||
special_time: reboot
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
register: certbot
|
||||
|
||||
- name: Server | Cron | Certbot | Monthly Renewal
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: Monthly Renewal
|
||||
job: "{{ certbot.stdout }} renew"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cron jobs specific to FreeBSD
|
||||
|
||||
- name: General | Cron | Ansible | FreeBSD | Enable Security Update
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: ansible
|
||||
name: "Security Update"
|
||||
special_time: weekly
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cron jobs specific to Linux
|
||||
|
||||
- name: General | Cron | Ansible | Linux | Update System Flatpaks
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: ansible
|
||||
name: "Update System Flatpaks"
|
||||
special_time: hourly
|
||||
@@ -12,7 +12,7 @@
|
||||
when: flatpak_distro
|
||||
|
||||
- name: General | Cron | Ansible | Linux | Update User Flatpaks
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: ansible
|
||||
name: "Update User Flatpaks"
|
||||
special_time: hourly
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
---
|
||||
|
||||
- name: Workstation | Shared | Cron | Root | Shutdown Warnings
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "Shutdown Warnings"
|
||||
minute: "*"
|
||||
@@ -12,7 +12,7 @@
|
||||
state: present
|
||||
|
||||
- name: Workstation | Shared | Cron | Root | Shutdown
|
||||
cron:
|
||||
ansible.builtin.cron:
|
||||
user: root
|
||||
name: "Shutdown"
|
||||
minute: "*/5"
|
||||
|
||||
Reference in New Issue
Block a user