Allow godan user to run sudo without a password
This commit is contained in:
@@ -22,3 +22,11 @@
|
|||||||
state: present
|
state: present
|
||||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOBa7padbnxWe1Ct5jguWdJ1rhRrDqk6m6xJA0OJzkQv"
|
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOBa7padbnxWe1Ct5jguWdJ1rhRrDqk6m6xJA0OJzkQv"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
- name: No password for sudo
|
||||||
|
become: true
|
||||||
|
community.general.sudoers:
|
||||||
|
nopassword: true
|
||||||
|
commands: ALL
|
||||||
|
user: "godan"
|
||||||
|
name: "No password for sudo"
|
||||||
|
|||||||
Reference in New Issue
Block a user