New stuffs again
This commit is contained in:
17
prompt_test.yml
Normal file
17
prompt_test.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Prompt test
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
|
||||
vars_prompt:
|
||||
- name: "wut_want"
|
||||
prompt: "What do you want?!"
|
||||
|
||||
tasks:
|
||||
- name: Debug wut_want if defined
|
||||
ansible.builtin.debug:
|
||||
var: wut_want
|
||||
when:
|
||||
- wut_want is defined
|
||||
- (wut_want | length) != 0
|
Reference in New Issue
Block a user