# platform = multi_platform_all
# reboot = false
# strategy = restrict
# complexity = low
# disruption = low

- name: Ensure requiretty is enabled in /etc/sudoers
  ansible.builtin.lineinfile:
    path: /etc/sudoers
    regexp: '^[\s]*Defaults.*\brequiretty\b.*$'
    line: 'Defaults requiretty'
    validate: /usr/sbin/visudo -cf %s
