28 lines
862 B
YAML

---
# Define file, folder, and other facts per OS.
- name: Facts | General | System | Pop OS
set_fact:
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /etc/sudoers.d/ansible
when: ansible_distribution == "Pop!_OS"
- name: Facts | General | System | Debian and Ubuntu
set_fact:
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /etc/sudoers.d/ansible
when: ansible_distribution in ("Debian","Ubuntu")
- name: Facts | General | System | FreeBSD
set_fact:
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /usr/local/etc/sudoers.d/ansible
when: ansible_system == "FreeBSD"
- name: Facts | General | System | 1337
set_fact:
leet_drive: /mnt/leet
lynis_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_lynis.txt"
nmap_report: "/mnt/leet/Temp/ansible/{{ ansible_hostname }}_nmap.txt"