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.
 
 

19 lines
296 B

---
- 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