CSC Ansible Playbooks
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.
ansible-playbooks/disable-login.yml

9 lines
227 B

---
- hosts: office general-use
remote_user: root
tasks:
- name: copy nologin
copy: src={{ item.src }} dest={{ item.dest }} backup=no
with_items:
- { src: 'files/nologin', dest: '/etc/nologin' }