From b68e40fc19286b0722a74dcd2d97e70c13c4f10f Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 12 Sep 2026 23:18:10 +0200 Subject: [PATCH] chore: ansible dummy --- ansible/inventory.yml | 7 +++++++ ansible/playbook.yml | 24 ++++++++++++++++++++++++ ansible/pyproject.toml | 13 +++++++++++++ ansible/uv.lock | 18 ++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 ansible/inventory.yml create mode 100644 ansible/playbook.yml create mode 100644 ansible/pyproject.toml create mode 100644 ansible/uv.lock diff --git a/ansible/inventory.yml b/ansible/inventory.yml new file mode 100644 index 0000000..0787e0b --- /dev/null +++ b/ansible/inventory.yml @@ -0,0 +1,7 @@ +myhosts: + hosts: + mikoshi: + ansible_host: 192.168.0.13 + vars: + ansible_user: root + diff --git a/ansible/playbook.yml b/ansible/playbook.yml new file mode 100644 index 0000000..e48fcea --- /dev/null +++ b/ansible/playbook.yml @@ -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 + diff --git a/ansible/pyproject.toml b/ansible/pyproject.toml new file mode 100644 index 0000000..29f8da3 --- /dev/null +++ b/ansible/pyproject.toml @@ -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 } diff --git a/ansible/uv.lock b/ansible/uv.lock new file mode 100644 index 0000000..4c6b7f4 --- /dev/null +++ b/ansible/uv.lock @@ -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 = "." }]