diff options
author | Aaditya Dhruv <[email protected]> | 2023-09-09 22:17:24 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-09-09 22:17:24 -0500 |
commit | 3070d0cc40b6a3dd120f61c33fdc454dab971035 (patch) | |
tree | ee00384460a5b79fb5788d8c3bc0b9b7ed9a57d0 | |
parent | dfc83144e0ba3bb5ea7d68721ec12b9edff13349 (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.yaml | 8 | ||||
-rw-r--r-- | install.yaml | 12 |
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" |