chore: ansible dummy
This commit is contained in:
commit
b68e40fc19
4 changed files with 62 additions and 0 deletions
24
ansible/playbook.yml
Normal file
24
ansible/playbook.yml
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue