Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
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
615 B

- hosts: login
become: true
- name: create lecture file
dest: /etc/sudoers.lecture
content: |
Sudo is only possible for administrators on this system
If you typed sudo because it is in some tutorial,
Please read the wiki about our cluster first
- name: Set sudo to use custom lecture file.
path: /etc/sudoers
line: Defaults lecture_file = /etc/sudoers.lecture
state: present
insertafter: Defaults