Guest User

Untitled

a guest
Feb 24th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. copy:
  2. content: "{{ item.key }} ALL=(ALL) NOPASSWD:ALL"
  3. dest: "/etc/sudoers.d/{{ item.key }}"
  4. owner: root
  5. group: root
  6. mode: 0400
  7. with_dict: "{{ users_list }}"
  8. when: users_list is defined
  9. become: true
  10.  
  11. users_list:
  12. username:
  13. ssh_key: "ssh-rsa ..."
  14. password: "$6$..."
  15. comment: "User Name"
  16.  
  17. user_credentials:
  18. username:
  19. ssh_key: "ssh-rsa ..."
  20. password: "$6$..."
  21. comment: "User Name"
  22. username_2:
  23. ...
  24.  
  25. users_list:
  26. username:
  27. sudoer: yes
  28. nopasswd: yes
  29. username_2:
  30. sudoer: yes
  31. nopasswd: no
  32. some_fired_employee:
  33. state: absent
Add Comment
Please, Sign In to add comment