You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
426 B
YAML
10 lines
426 B
YAML
---
|
|
- name: ensure sudo is installed
|
|
apt: name=sudo state=present
|
|
|
|
- name: allow sudo for users in the sudo group
|
|
lineinfile: "dest=/etc/sudoers state=present regexp='^%sudo' line='%sudo ALL=(ALL:ALL) NOPASSWD: ALL'"
|
|
|
|
- name: allow sudo to keep SSH_AUTH_SOCK env
|
|
lineinfile: "dest=/etc/sudoers state=present regexp='^Defaults.*env_keep.*SSH_AUTH_SOCK' line='Defaults env_keep += \"SSH_AUTH_SOCK\"'"
|