From 9c06b98fde9495210f26d13372c5c1d369e7463d Mon Sep 17 00:00:00 2001 From: Marty Oehme <marty.oehme@gmail.com> Date: Fri, 21 Feb 2025 09:56:28 +0100 Subject: [PATCH] Set up basic ansible repo --- README.md | 5 +++++ ansible.cfg | 2 ++ inventory | 2 ++ play.yaml | 18 ++++++++++++++++++ requirements.yaml | 3 +++ 5 files changed, 30 insertions(+) create mode 100644 README.md create mode 100644 ansible.cfg create mode 100644 inventory create mode 100644 play.yaml create mode 100644 requirements.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..d48d339 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Install void linux from arch linux + +Uses btrfs subvolumes, chroot and the void linux root tarball. +This is primarily made for _my_ setup to quickly get void linux up and running for playing around with stuff. + diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..b4a6d4b --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory=inventory diff --git a/inventory b/inventory new file mode 100644 index 0000000..fe96c36 --- /dev/null +++ b/inventory @@ -0,0 +1,2 @@ +[host] +127.0.0.1 ansible_connection=local diff --git a/play.yaml b/play.yaml new file mode 100644 index 0000000..c08ecbd --- /dev/null +++ b/play.yaml @@ -0,0 +1,18 @@ +--- + +- name: Example task + hosts: host + tasks: + - name: Display facts + debug: + msg: "Facts collected: {{ ansible_facts }}" + +# - name: Create void btrfs subvol +# hosts: host +# vars: +# - btrfs_target: 441a90a5-3da2-46ce-9e32-987569b746c9 +# tasks: +# - name: Create @voidroot subvool under root +# community.general.btrfs_subvolume: +# name: /@voidroot +# filesystem_uuid: {{ btrfs_target }} diff --git a/requirements.yaml b/requirements.yaml new file mode 100644 index 0000000..8dd5161 --- /dev/null +++ b/requirements.yaml @@ -0,0 +1,3 @@ +--- +collections: + - community.general