Provide method for non-SSHFS machines to report.

This commit is contained in:
2021-02-06 09:18:23 -06:00
parent cbb567cbf2
commit 1a43936c6b
3 changed files with 53 additions and 7 deletions

View File

@ -9,4 +9,23 @@
job: "{{ sshfs_leet_cmd }}"
state: present
disabled: no
when: ansible_system == "FreeBSD"
when: ansible_system == "FreeBSD"
- name: General | Cron | Root | Enable Secure Copy Reports
cron:
user: root
name: "Copy Reports"
minute: "05,20,35,50"
job: "scp {{ ansible_pull_report }} {{ heartbeat_report }} {{ lynis_report }} {{ nmap_report }} ling@leet:{{ report_scp_location }}"
state: present
disabled: no
when: not leet_drive_details.stat.exists
- name: General | Cron | Root | Disable Secure Copy Reports
cron:
user: root
name: "Copy Reports"
job: "As a wise man once said, I'm disabled."
state: present
disabled: yes
when: leet_drive_details.stat.exists