17 lines
433 B
YAML
17 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'
|