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