Provide method for non-SSHFS machines to report.
This commit is contained in:
@ -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
|
@ -4,11 +4,14 @@
|
||||
|
||||
- name: General | Start | Ansible Pull Report | Start File
|
||||
shell: "echo 'START' > {{ ansible_pull_report }}"
|
||||
when: leet_drive_details.stat.exists
|
||||
|
||||
- name: General | Start | Ansible Pull Report | Make Viewable
|
||||
- name: General | Start | Ansible Pull Report | Make Viewable (SSHFS)
|
||||
file:
|
||||
path: "{{ ansible_pull_report }}"
|
||||
mode: '0777'
|
||||
when: leet_drive_details.stat.exists
|
||||
|
||||
- name: General | Start | Ansible Pull Report | Add Date Entry
|
||||
shell: "date >> {{ ansible_pull_report }}"
|
||||
shell: "date >> {{ ansible_pull_report }}"
|
||||
when: leet_drive_details.stat.exists
|
Reference in New Issue
Block a user