ansible/roles/basic_common_settings/tasks/sudo.yml
2022-12-14 17:43:16 +01:00

18 lines
433 B
YAML

---
- name: "Install security/sudo (FreeBSD)"
ansible.builtin.package:
name: security/sudo
state: present
when: ansible_os_family == 'FreeBSD'
- name: "Allow group wheel to use sudo (FreeBSD)"
ansible.builtin.lineinfile:
path: /usr/local/etc/sudoers
regexp: '%wheel ALL=\(ALL\) ALL'
line: '%wheel ALL=(ALL) ALL'
owner: root
group: wheel
mode: '0440'
when: ansible_os_family == 'FreeBSD'