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

7
ansible/inventory.yml Normal file
View file

@ -0,0 +1,7 @@
myhosts:
hosts:
mikoshi:
ansible_host: 192.168.0.13
vars:
ansible_user: root

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

13
ansible/pyproject.toml Normal file
View file

@ -0,0 +1,13 @@
[project]
name = "ansible"
version = "0.1.0"
requires-python = ">=3.14"
dependencies = []
[dependency-groups]
dev = [
"ansible",
]
[tool.uv.sources]
ansible = { workspace = true }

18
ansible/uv.lock generated Normal file
View file

@ -0,0 +1,18 @@
version = 1
revision = 3
requires-python = ">=3.14"
[[package]]
name = "ansible"
version = "0.1.0"
source = { virtual = "." }
[package.dev-dependencies]
dev = [
{ name = "ansible" },
]
[package.metadata]
[package.metadata.requires-dev]
dev = [{ name = "ansible", virtual = "." }]