
i still have a lot of work to finish the ansible setup, as well as testing it (the worst part...)
17 lines
386 B
YAML
17 lines
386 B
YAML
- name: Ask user for type of install
|
|
hosts: all
|
|
become: true
|
|
|
|
vars_prompt:
|
|
- name: install_input
|
|
prompt: "What type of install do you want?"
|
|
choices:
|
|
- "minimal"
|
|
- "full"
|
|
default: "minimal"
|
|
private: no
|
|
|
|
block:
|
|
- name: Install packages for the system
|
|
include_tasks: "{{ install_input }}.yml"
|
|
when: install_input is defined
|