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

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