From f40ba1a8535fcc9d9ac1749a09af4b9781998900 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 5 Nov 2019 15:23:56 +0000 Subject: [PATCH] Add wheel to sudoers --- roles/distro/tasks/freebsd.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/distro/tasks/freebsd.yml b/roles/distro/tasks/freebsd.yml index d8fd6f1..0a04dfa 100644 --- a/roles/distro/tasks/freebsd.yml +++ b/roles/distro/tasks/freebsd.yml @@ -70,3 +70,11 @@ path: /etc/rc.conf regexp: '^ifconfig_wlan0_ipv6=.*' line: 'ifconfig_wlan0_ipv6="inet6 accept_rtadv"' +- name: Enable wheel group to use sudo + become: true + lineinfile: + path: /usr/local/etc/sudoers.d/wheel + regexp: 'wheel' + line: '%wheel ALL=(ALL) ALL' + create: yes + mode: '0644'