Fix ansible sudoer permissions.

This commit is contained in:
Hyperling 2021-02-06 09:42:47 -06:00
parent 9d4505f127
commit 6e12534299
3 changed files with 5 additions and 4 deletions

View File

@ -4,21 +4,21 @@
- name: Facts | General | System | Pop OS
set_fact:
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /etc/sudoers.d/ansible
sudoers_install_dir: /etc/sudoers.d/
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
sudoers_install_dir: /etc/sudoers.d/
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
sudoers_install_dir: /usr/local/etc/sudoers.d/
when: ansible_system == "FreeBSD"

View File

@ -65,4 +65,5 @@
- include: tasks/general/tests/nmap.yml
- include: tasks/general/tests/lynis.yml
post_tasks:
- include: tasks/general/finish.yml

View File

@ -15,6 +15,6 @@
user: ansible
name: "Heartbeat Report"
minute: "*/15"
job: "date > {{ heartbeat_report }}; chmod 777 {{ heartbeat_report }}"
job: "sudo date > {{ heartbeat_report }}; chmod 777 {{ heartbeat_report }}"
state: present
disabled: no