Adjust report permissions.

This commit is contained in:
Hyperling 2021-02-06 07:37:31 -06:00
parent 5030ebfbdf
commit fc3953ae29
4 changed files with 4 additions and 3 deletions

View File

@ -24,5 +24,6 @@
- name: Facts | General | System | 1337 - name: Facts | General | System | 1337
set_fact: set_fact:
leet_drive: /mnt/leet leet_drive: /mnt/leet
heartbeat_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}.txt"
lynis_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_lynis.txt" lynis_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_lynis.txt"
nmap_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_nmap.txt" nmap_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_nmap.txt"

View File

@ -15,6 +15,6 @@
user: ansible user: ansible
name: "Ansible Sync" name: "Ansible Sync"
minute: "*/15" minute: "*/15"
job: "echo 'ALIVE' > /mnt/leet/Temp/ansible/{{ ansible_hostname }}.txt" job: "echo {{ ansible_date_time.iso8601_basic_short }} > {{ heartbeat_report }}; chmod 777 {{ heartbeat_report }}"
state: present state: present
disabled: no disabled: no

View File

@ -16,4 +16,4 @@
- name: General | Tests | Lynis | Make Report Readable - name: General | Tests | Lynis | Make Report Readable
file: file:
path: "{{ lynis_report }}" path: "{{ lynis_report }}"
mode: '0444' mode: '0777'

View File

@ -10,4 +10,4 @@
- name: General | Tests | nmap | Make Viewable - name: General | Tests | nmap | Make Viewable
file: file:
path: "{{ nmap_report }}" path: "{{ nmap_report }}"
mode: '0444' mode: '0777'