From 3070d0cc40b6a3dd120f61c33fdc454dab971035 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sat, 9 Sep 2023 22:17:24 -0500 Subject: 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 --- config.yaml | 8 ++++++++ install.yaml | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 config.yaml create mode 100644 install.yaml 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" -- cgit