chore: ansible dummy

This commit is contained in:
Tibo De Peuter 2026-09-12 23:18:10 +02:00
commit b68e40fc19
4 changed files with 62 additions and 0 deletions

24
ansible/playbook.yml Normal file
View file

@ -0,0 +1,24 @@
- name: Say hello
hosts: myhosts
tasks:
- name: Print message
ansible.builtin.debug:
msg: Hello world
- name: Ignore lidswitch
hosts: myhosts
tasks:
- name: Ignore lid switch
ansible.builtin.lineinfile:
path: /etc/systemd/logind.conf
regexp: '^#?HandleLidSwitch='
line: 'HandleLidSwitch=ignore'
state: present
become: true
notify: Restart logind
handlers:
- name: Restart logind
ansible.builtin.systemd:
name: systemd-logind
state: restarted
become: true