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/roles/kill-user-processes/tasks/main.yml

8 lines
260 B

---
- name: enable KillUserProcesses in /etc/systemd/logind.conf
lineinfile: dest=/etc/systemd/logind.conf
state=present
backrefs=yes
regexp='^#KillUserProcesses=(no|yes)'
line='KillUserProcesses=yes'