Answers for "Ansible playbook to set passwordless sudo"

0

Ansible playbook to set passwordless sudo

---
- hosts: all
  tasks:
    - lineinfile:
        path: /etc/sudoers
        state: present
        regexp: '^%sudo'
        line: '%sudo ALL=(ALL) NOPASSWD: ALL'
        validate: 'visudo -cf %s'
Posted by: Guest on June-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language