summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:33:32 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:33:32 +0200
commitb47dfa7b43434cdd8836bf30d549af77ac4b5287 (patch)
treef3dc007ecd943addeb3c2488ab08056eac360068
parent75b3aaf26bd67d75a6aeb5e6331ff896482acfef (diff)
Add host_vars example and encrypted configs
-rw-r--r--host_vars/archiso.local.ymlbin0 -> 1027 bytes
-rw-r--r--host_vars/archiso.local.yml.example46
-rw-r--r--host_vars/ubuntuiso.local.ymlbin0 -> 1052 bytes
-rw-r--r--host_vars/ubuntuiso.local.yml.example47
-rw-r--r--inventory/hosts.yml10
5 files changed, 103 insertions, 0 deletions
diff --git a/host_vars/archiso.local.yml b/host_vars/archiso.local.yml
new file mode 100644
index 0000000..1d485f0
--- /dev/null
+++ b/host_vars/archiso.local.yml
Binary files differ
diff --git a/host_vars/archiso.local.yml.example b/host_vars/archiso.local.yml.example
new file mode 100644
index 0000000..0dd53e7
--- /dev/null
+++ b/host_vars/archiso.local.yml.example
@@ -0,0 +1,46 @@
+---
+hostname: "archlinux.local"
+partition_disk: "/dev/sda"
+partition_wipe: false
+partition_boot:
+ num: 1
+ name: "boot"
+ flags: [boot, esp]
+ part_start: "0%"
+ part_end: "1.0GiB"
+ fstype: "vfat"
+ fstype_opts: "-F 32"
+ dev: "{{ partition_disk }}1"
+ mount_path: "/mnt/boot/efi"
+ fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077"
+partition_swap:
+ num: 2
+ name: "swap"
+ flags: [swap]
+ part_start: "1.0GiB"
+ part_end: "9.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}2"
+ mount_path: "none"
+partition_root:
+ num: 4
+ name: "arch-root"
+ part_start: "59.0GiB"
+ part_end: "109.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}4"
+ mount_path: "/mnt"
+partition_extras:
+ - num: 3
+ name: "ubuntu-root"
+ part_start: "9.0GiB"
+ part_end: "59.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}3"
+ - num: 5
+ name: "home"
+ part_start: "109.0GiB"
+ part_end: "100%"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}4"
+configure_playbook_dir: "../ansible-distro-configure"
diff --git a/host_vars/ubuntuiso.local.yml b/host_vars/ubuntuiso.local.yml
new file mode 100644
index 0000000..4f8274d
--- /dev/null
+++ b/host_vars/ubuntuiso.local.yml
Binary files differ
diff --git a/host_vars/ubuntuiso.local.yml.example b/host_vars/ubuntuiso.local.yml.example
new file mode 100644
index 0000000..00f1c52
--- /dev/null
+++ b/host_vars/ubuntuiso.local.yml.example
@@ -0,0 +1,47 @@
+---
+hostname: "ubuntu.local"
+partition_disk: "/dev/sda"
+partition_wipe: false
+partition_boot:
+ num: 1
+ name: "boot"
+ flags: [boot, esp]
+ part_start: "0%"
+ part_end: "1.0GiB"
+ fstype: "vfat"
+ fstype_opts: "-F 32"
+ dev: "{{ partition_disk }}1"
+ mount_path: "/mnt/boot/efi"
+ fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077"
+partition_swap:
+ num: 2
+ name: "swap"
+ flags: [swap]
+ part_start: "1.0GiB"
+ part_end: "9.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}2"
+ mount_path: "none"
+partition_root:
+ num: 3
+ name: "ubuntu-root"
+ part_start: "9.0GiB"
+ part_end: "59.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}3"
+ mount_path: "/mnt"
+partition_extras:
+ - num: 4
+ name: "arch-root"
+ part_start: "59.0GiB"
+ part_end: "109.0GiB"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}4"
+ - num: 5
+ name: "home"
+ part_start: "109.0GiB"
+ part_end: "100%"
+ fstype: "ext4"
+ dev: "{{ partition_disk }}5"
+ mount_path: "/mnt/home"
+configure_playbook_dir: "../ansible-distro-configure"
diff --git a/inventory/hosts.yml b/inventory/hosts.yml
new file mode 100644
index 0000000..77bf618
--- /dev/null
+++ b/inventory/hosts.yml
@@ -0,0 +1,10 @@
+---
+live_environments:
+ vars:
+ ansible_connection: ssh
+ ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
+ hosts:
+ archiso.local:
+ ansible_user: root
+ ubuntuiso.local:
+ ansible_user: ubuntu