New stuffs again
This commit is contained in:
34
logic_select.yml
Normal file
34
logic_select.yml
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Logic Select
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: false
|
||||
|
||||
vars:
|
||||
selected_option: 4
|
||||
boot_sizes:
|
||||
- 1G
|
||||
- 1.25G
|
||||
- 1.5G
|
||||
- 1.75G
|
||||
- 2G
|
||||
- 2.25G
|
||||
- 2.5G
|
||||
- 2.75G
|
||||
- 3G
|
||||
|
||||
tasks:
|
||||
- name: Selected option
|
||||
ansible.builtin.debug:
|
||||
var: selected_option
|
||||
|
||||
- name: Print the chosen size
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ boot_sizes[selected_option] }}"
|
||||
|
||||
- name: Set stats test
|
||||
ansible.builtin.set_stats:
|
||||
aggregate: true
|
||||
data:
|
||||
misc_shit: "{{ boot_sizes | join(', ') }}"
|
||||
|
Reference in New Issue
Block a user