summaryrefslogtreecommitdiff
path: root/test/integration/targets/vars_prompt/vars_prompt-6.yml
blob: ea3fe6209cfc0554e98f4f0e48fc5501053091f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- name: Test vars_prompt custom variables in prompt
  hosts: testhost
  become: no
  gather_facts: no

  vars:
    prompt_var: prompt from variable

  vars_prompt:
    - name: input
      prompt: "{{ prompt_var }}"

  tasks:
    - name:
      assert:
        that:
          - input == 'input'

    - debug:
        var: input