volker.raschekandCopilot d2e4036430 fix(tasks): match @includedir directive in /etc/sudoers
The regular expression required a leading hash, but sudo 1.9.1 introduced @includedir and distributions such as
Debian 12, Ubuntu 22.04, RHEL 9 and Arch Linux ship /etc/sudoers with that syntax. Since the existing line was never
matched, lineinfile appended a second directive and /etc/sudoers.d was included twice.

The dot in sudoers.d is escaped as well, so the expression no longer matches unrelated paths.

Co-authored-by: Copilot <copilot@github.com>
2026-09-10 21:41:34 +02:00
2025-11-23 16:19:51 +01:00
2025-11-23 16:19:51 +01:00
2025-04-14 22:31:30 +02:00
2022-05-10 13:40:31 +02:00
2025-04-14 22:31:30 +02:00
2025-04-14 22:31:30 +02:00
2025-04-14 22:31:30 +02:00
2022-05-10 13:40:31 +02:00
2025-06-01 12:27:38 +02:00

sudo_users

Ansible Role

With following role can be created sudoers files in /etc/sudoers.d. For example to grant a user special perimssions to execute a program as root.

Supported distributions

  • Arch Linux
  • Debian
  • Fedora
  • RHEL
  • Ubuntu 20.04

Features

  • Installing sudo
  • Configuring drop-on files in /etc/sudoers.d

Configuring

In the default directory are examples how to configure the network stack. Copy the defaults into your host_vars or group_vars and adapt the examples.

S
Description
Ansible role to create drop-in files for sudoers.d
Readme MIT
158 KiB