aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaditya Dhruv <[email protected]>2023-09-09 22:17:24 -0500
committerAaditya Dhruv <[email protected]>2023-09-09 22:17:24 -0500
commit3070d0cc40b6a3dd120f61c33fdc454dab971035 (patch)
treeee00384460a5b79fb5788d8c3bc0b9b7ed9a57d0
parentdfc83144e0ba3bb5ea7d68721ec12b9edff13349 (diff)
Add central installation playbook and config
This is the main yaml file which will call the other roles in the repo. It reads the variables from the config written in config.yaml and accordingly sets up the target system
-rw-r--r--config.yaml8
-rw-r--r--install.yaml12
2 files changed, 20 insertions, 0 deletions
diff --git a/config.yaml b/config.yaml
new file mode 100644
index 0000000..e0b4b83
--- /dev/null
+++ b/config.yaml
@@ -0,0 +1,8 @@
+---
+packages:
+ - development
+ - gaming
+system:
+opt:
+config:
+
diff --git a/install.yaml b/install.yaml
new file mode 100644
index 0000000..407b772
--- /dev/null
+++ b/install.yaml
@@ -0,0 +1,12 @@
+- name: System Configuration
+ hosts: localhost
+ connection: local
+ vars:
+ config: "{{ lookup('file','config.yaml') | from_yaml }}"
+ tasks:
+ - name: Startup
+ debug:
+ msg: Starting system setup
+ - name: Package Management
+ include_role:
+ name: "src/packages"