Fix report names and cron job.
This commit is contained in:
parent
e3da232124
commit
2e33a8a93c
@ -46,31 +46,31 @@
|
|||||||
|
|
||||||
- name: General | Facts | System | Report File Names
|
- name: General | Facts | System | Report File Names
|
||||||
set_fact:
|
set_fact:
|
||||||
heartbeat_report: "{{ ansible_hostname }}.txt"
|
heartbeat_report_name: "{{ ansible_hostname }}.txt"
|
||||||
ansible_pull_report: "{{ ansible_hostname }}_last_pull_times.txt"
|
ansible_pull_report_name: "{{ ansible_hostname }}_last_pull_times.txt"
|
||||||
lynis_report: "{{ ansible_hostname }}_lynis.txt"
|
lynis_report_name: "{{ ansible_hostname }}_lynis.txt"
|
||||||
nmap_report: "{{ ansible_hostname }}_nmap.txt"
|
nmap_report_name: "{{ ansible_hostname }}_nmap.txt"
|
||||||
|
|
||||||
- name: General | Facts | System | Report Locations (SSHFS)
|
- name: General | Facts | System | Report Locations (SSHFS)
|
||||||
set_fact:
|
set_fact:
|
||||||
heartbeat_report: "{{ report_location }}/{{ heartbeat_report }}"
|
heartbeat_report: "{{ report_location }}/{{ heartbeat_report_name }}"
|
||||||
ansible_pull_report: "{{ report_location }}/pull/{{ ansible_pull_report }}"
|
ansible_pull_report: "{{ report_location }}/pull/{{ ansible_pull_report_name }}"
|
||||||
lynis_report: "{{ report_location }}/lynis/{{ lynis_report }}"
|
lynis_report: "{{ report_location }}/lynis/{{ lynis_report_name }}"
|
||||||
nmap_report: "{{ report_location }}/nmap/{{ nmap_report }}"
|
nmap_report: "{{ report_location }}/nmap/{{ nmap_report_name }}"
|
||||||
when: leet_drive_details.stat.exists
|
when: leet_drive_details.stat.exists
|
||||||
|
|
||||||
- name: General | Facts | System | Report Locations (Local)
|
- name: General | Facts | System | Report Locations (Local)
|
||||||
set_fact:
|
set_fact:
|
||||||
heartbeat_report: "{{ report_location }}/{{ heartbeat_report }}"
|
heartbeat_report: "{{ report_location }}/{{ heartbeat_report_name }}"
|
||||||
ansible_pull_report: "{{ report_location }}/{{ ansible_pull_report }}"
|
ansible_pull_report: "{{ report_location }}/{{ ansible_pull_report_name }}"
|
||||||
lynis_report: "{{ report_location }}/{{ lynis_report }}"
|
lynis_report: "{{ report_location }}/{{ lynis_report_name }}"
|
||||||
nmap_report: "{{ report_location }}/{{ nmap_report }}"
|
nmap_report: "{{ report_location }}/{{ nmap_report_name }}"
|
||||||
when: not leet_drive_details.stat.exists
|
when: not leet_drive_details.stat.exists
|
||||||
|
|
||||||
- name: General | Facts | System | Report Destinations (SCP)
|
- name: General | Facts | System | Report Destinations (SCP)
|
||||||
set_fact:
|
set_fact:
|
||||||
heartbeat_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/{{ heartbeat_report }}"
|
heartbeat_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/{{ heartbeat_report_name }}"
|
||||||
ansible_pull_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/pull/{{ ansible_pull_report }}"
|
ansible_pull_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/pull/{{ ansible_pull_report_name }}"
|
||||||
lynis_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/lynis/{{ lynis_report }}"
|
lynis_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/lynis/{{ lynis_report_name }}"
|
||||||
nmap_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/nmap/{{ nmap_report }}"
|
nmap_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/nmap/{{ nmap_report_name }}"
|
||||||
when: not leet_drive_details.stat.exists
|
when: not leet_drive_details.stat.exists
|
@ -38,10 +38,10 @@
|
|||||||
state: present
|
state: present
|
||||||
disabled: no
|
disabled: no
|
||||||
loop:
|
loop:
|
||||||
- { name: 'Ansible Pull Report', src: '{{ ansible_pull_report_scp }}', dest: '{{ ansible_pull_report }}' }
|
- { name: 'Ansible Pull Report', src: '{{ ansible_pull_report }}', dest: '{{ ansible_pull_report_scp }}' }
|
||||||
- { name: 'Heartbeat Report', src: '{{ heartbeat_report_scp }}', dest: '{{ heartbeat_report }}' }
|
- { name: 'Heartbeat Report', src: '{{ heartbeat_report }}', dest: '{{ heartbeat_report_scp }}' }
|
||||||
- { name: 'Lynis Report', src: '{{ lynis_report_scp }}', dest: '{{ lynis_report }}' }
|
- { name: 'Lynis Report', src: '{{ lynis_report }}', dest: '{{ lynis_report_scp }}' }
|
||||||
- { name: 'NMap Report', src: '{{ nmap_report_scp }}', dest: '{{ nmap_report }}' }
|
- { name: 'NMap Report', src: '{{ nmap_report }}', dest: '{{ nmap_report_scp }}' }
|
||||||
when: not leet_drive_details.stat.exists
|
when: not leet_drive_details.stat.exists
|
||||||
|
|
||||||
- name: General | Cron | Ansible | Disable Secure Copy Reports
|
- name: General | Cron | Ansible | Disable Secure Copy Reports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user