2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-01-31 16:22:01 -06:00
|
|
|
# Define file, folder, and other facts per OS.
|
2020-12-28 21:32:28 -06:00
|
|
|
|
2021-01-31 17:00:47 -06:00
|
|
|
- name: Set Pop OS Facts
|
2021-01-31 17:07:57 -06:00
|
|
|
set_fact:
|
2021-01-31 17:00:47 -06:00
|
|
|
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"
|
2020-12-28 21:32:28 -06:00
|
|
|
|
|
|
|
|
2021-01-31 17:00:47 -06:00
|
|
|
- name: Set Debian and Ubuntu Facts
|
2021-01-31 17:09:07 -06:00
|
|
|
set_fact:
|
2021-01-31 17:00:47 -06:00
|
|
|
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")
|
2020-12-28 21:32:28 -06:00
|
|
|
|
|
|
|
|
2021-01-31 17:00:47 -06:00
|
|
|
- name: Set FreeBSD Facts
|
2021-01-31 17:09:07 -06:00
|
|
|
set_fact:
|
2021-01-31 17:00:47 -06:00
|
|
|
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_distribution == "FreeBSD"
|