aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sudo/README.md
blob: 8597385c7945a99e2ab70795148db33c3d34ebf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Sudo
====

Description
-----------

The `sudo` configures email alerts for failed sudo attempts. The sudo rules
themselves are configured within FreeIPA.


Variables
---------

This role **accepts** the following variables:

Variable           | Default | Description
-------------------|---------|------------
`sudo_send_emails` | yes     | Send email alerts for failed sudo attempts
`sudo_mailto`      | `root`  | Alert destination address


Usage
-----

Example playbook:

````yaml
- name: configure sudo logging
  hosts: all
  roles:
    - role: sudo
      vars:
        sudo_send_emails: yes
        sudo_mailto: sysadmins@example.com
````