25 lines
752 B
YAML
25 lines
752 B
YAML
---
|
|
# Define file, folder, and other facts per OS.
|
|
|
|
- name: Facts | Workstation | System | Pop OS
|
|
set_fact:
|
|
lynis_install_dir: /usr/local/lynis
|
|
lynis_report: /home/ling/lynis.log
|
|
sudoers_install_dir: /etc/sudoers.d/ansible
|
|
when: ansible_distribution == "Pop!_OS"
|
|
|
|
|
|
- name: Facts | Workstation | System | Debian and Ubuntu
|
|
set_fact:
|
|
lynis_install_dir: /usr/local/lynis
|
|
lynis_report: /root/lynis.log
|
|
sudoers_install_dir: /etc/sudoers.d/ansible
|
|
when: ansible_distribution in ("Debian","Ubuntu")
|
|
|
|
|
|
- name: Facts | Workstation | System | FreeBSD
|
|
set_fact:
|
|
lynis_install_dir: /usr/local/lynis
|
|
lynis_report: /root/lynis.log
|
|
sudoers_install_dir: /usr/local/etc/sudoers.d/ansible
|
|
when: ansible_system == "FreeBSD" |