You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
296 B

4 years ago
---
- hosts: service
remote_user: "{{ user }}"
gather_facts: no
vars:
user: "zeus"
tasks:
- name: no sudo passwd
become: true
copy:
src: "../files/sudo"
dest: "/etc/sudoers.d/{{ ruser }}"
owner: root
group: root
mode: 0440