Fix ansible sudoer permissions.
This commit is contained in:
parent
9d4505f127
commit
6e12534299
@ -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"
|
||||
|
||||
|
||||
|
@ -65,4 +65,5 @@
|
||||
- include: tasks/general/tests/nmap.yml
|
||||
- include: tasks/general/tests/lynis.yml
|
||||
|
||||
post_tasks:
|
||||
- include: tasks/general/finish.yml
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user