diff --git a/facts/general/system.yml b/facts/general/system.yml index ecddeff..c607181 100644 --- a/facts/general/system.yml +++ b/facts/general/system.yml @@ -62,7 +62,7 @@ - name: General | Facts | System | Report Locations (Local) set_fact: heartbeat_report: "{{ report_location }}/{{ heartbeat_report }}" - ansible_pull_report: "{{ report_location }}//{{ ansible_pull_report }}" + ansible_pull_report: "{{ report_location }}/{{ ansible_pull_report }}" lynis_report: "{{ report_location }}/{{ lynis_report }}" nmap_report: "{{ report_location }}/{{ nmap_report }}" when: not leet_drive_details.stat.exists diff --git a/tasks/general/cron/ansible.yml b/tasks/general/cron/ansible.yml index ace8101..21d0458 100644 --- a/tasks/general/cron/ansible.yml +++ b/tasks/general/cron/ansible.yml @@ -47,8 +47,13 @@ - name: General | Cron | Ansible | Disable Secure Copy Reports cron: user: ansible - name: "Copy Reports" + name: "{{ item.name }}" job: "As a wise man once said, I'm disabled." state: present disabled: yes + loop: + - { name: 'Ansible Pull Report', src: '{{ ansible_pull_report_scp }}', dest: '{{ ansible_pull_report }}' } + - { name: 'Heartbeat Report', src: '{{ heartbeat_report_scp }}', dest: '{{ heartbeat_report }}' } + - { name: 'Lynis Report', src: '{{ lynis_report_scp }}', dest: '{{ lynis_report }}' } + - { name: 'NMap Report', src: '{{ nmap_report_scp }}', dest: '{{ nmap_report }}' } when: leet_drive_details.stat.exists \ No newline at end of file