diff --git a/facts/general/system.yml b/facts/general/system.yml index a5eb77d..2e2fc36 100644 --- a/facts/general/system.yml +++ b/facts/general/system.yml @@ -21,9 +21,11 @@ sudoers_install_dir: /usr/local/etc/sudoers.d/ansible when: ansible_system == "FreeBSD" + - name: Facts | General | System | 1337 set_fact: leet_drive: /mnt/leet heartbeat_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}.txt" lynis_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_lynis.txt" - nmap_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_nmap.txt" \ No newline at end of file + nmap_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_nmap.txt" + ansible_pull_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_last_pull_times.txt" \ No newline at end of file diff --git a/local.yml b/local.yml index 1bde3fc..727f974 100644 --- a/local.yml +++ b/local.yml @@ -13,6 +13,8 @@ - include: facts/general/service.yml - include: facts/general/user.yml + - include: tasks/general/start.yml + tasks: - include: tasks/general/software/packages.yml - include: tasks/general/software/services.yml @@ -61,4 +63,6 @@ tasks: - include: tasks/general/tests/nmap.yml - - include: tasks/general/tests/lynis.yml \ No newline at end of file + - include: tasks/general/tests/lynis.yml + + - include: tasks/general/finish.yml \ No newline at end of file diff --git a/tasks/general/finish.yml b/tasks/general/finish.yml new file mode 100644 index 0000000..c593e06 --- /dev/null +++ b/tasks/general/finish.yml @@ -0,0 +1,9 @@ +--- +# Tasks related to finishing ansible-pull +# EG: End timer, start conflicting jobs, etc + +- name: General | Finish | Overwrite File + shell: "echo 'FINISH' >> {{ ansible_pull_report }}" + +- name: General | Finish | Add Date Entry + shell: "date >> {{ ansible_pull_report }}" \ No newline at end of file diff --git a/tasks/general/start.yml b/tasks/general/start.yml new file mode 100644 index 0000000..5baf38e --- /dev/null +++ b/tasks/general/start.yml @@ -0,0 +1,9 @@ +--- +# Tasks related to starting ansible-pull +# EG: Start timer, kill conflicting jobs, etc + +- name: General | Start | Overwrite File + shell: "echo 'START' > {{ ansible_pull_report }}" + +- name: General | Start | Add Date Entry + shell: "date >> {{ ansible_pull_report }}" \ No newline at end of file