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
tasks:
- name: create lecture file
copy:
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
https://wiki.hpc.rug.nl/peregrine/getting_started/module_environment
- name: Set sudo to use custom lecture file.
lineinfile:
path: /etc/sudoers
line: Defaults lecture_file = /etc/sudoers.lecture
state: present
insertafter: Defaults